#include <cost_learner.h>
Public Member Functions | |
bool | addSample (const std::string &loc, int door_from, int door_to, float cost) |
bool | addSample (const std::string &loc, const std::string &door_from, const std::string &door_to, float cost) |
CostLearner () | |
void | finalizeEpisode () |
void | prepareInputData () |
void | readValuesFile (int episode=-1) |
void | writeLuaFile (std::string lua_file="") |
void | writeValuesFile (int episode=-1) |
Private Attributes | |
double | alpha_ |
std::map< std::string, std::map< int, std::map< int, float > > > | distance_estimates_ |
std::map< std::string, std::map< int, std::map< int, int > > > | distance_samples_ |
std::vector < bwi_planning_common::Door > | doors_ |
int | iteration_ |
std::string | lua_file_ |
bool | use_exponential_weighting_ |
std::string | values_file_ |
Definition at line 17 of file cost_learner.h.
Definition at line 26 of file libbwi_planning/cost_learner.cpp.
bool bwi_planning::CostLearner::addSample | ( | const std::string & | loc, |
int | door_from, | ||
int | door_to, | ||
float | cost | ||
) |
Definition at line 201 of file libbwi_planning/cost_learner.cpp.
bool bwi_planning::CostLearner::addSample | ( | const std::string & | loc, |
const std::string & | door_from, | ||
const std::string & | door_to, | ||
float | cost | ||
) |
Definition at line 231 of file libbwi_planning/cost_learner.cpp.
Definition at line 246 of file libbwi_planning/cost_learner.cpp.
Definition at line 56 of file libbwi_planning/cost_learner.cpp.
void bwi_planning::CostLearner::readValuesFile | ( | int | episode = -1 | ) |
Definition at line 171 of file libbwi_planning/cost_learner.cpp.
void bwi_planning::CostLearner::writeLuaFile | ( | std::string | lua_file = "" | ) |
Definition at line 104 of file libbwi_planning/cost_learner.cpp.
void bwi_planning::CostLearner::writeValuesFile | ( | int | episode = -1 | ) |
Definition at line 145 of file libbwi_planning/cost_learner.cpp.
double bwi_planning::CostLearner::alpha_ [private] |
Definition at line 45 of file cost_learner.h.
std::map<std::string, std::map<int, std::map<int, float> > > bwi_planning::CostLearner::distance_estimates_ [private] |
Definition at line 38 of file cost_learner.h.
std::map<std::string, std::map<int, std::map<int, int> > > bwi_planning::CostLearner::distance_samples_ [private] |
Definition at line 40 of file cost_learner.h.
std::vector<bwi_planning_common::Door> bwi_planning::CostLearner::doors_ [private] |
Definition at line 36 of file cost_learner.h.
int bwi_planning::CostLearner::iteration_ [private] |
Definition at line 47 of file cost_learner.h.
std::string bwi_planning::CostLearner::lua_file_ [private] |
Definition at line 43 of file cost_learner.h.
bool bwi_planning::CostLearner::use_exponential_weighting_ [private] |
Definition at line 46 of file cost_learner.h.
std::string bwi_planning::CostLearner::values_file_ [private] |
Definition at line 42 of file cost_learner.h.