Public Member Functions | Private Attributes
bwi_planning::CostLearner Class Reference

#include <cost_learner.h>

List of all members.

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_

Detailed Description

Definition at line 17 of file cost_learner.h.


Constructor & Destructor Documentation

Definition at line 26 of file libbwi_planning/cost_learner.cpp.


Member Function Documentation

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.


Member Data Documentation

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.

Definition at line 36 of file cost_learner.h.

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.

Definition at line 46 of file cost_learner.h.

Definition at line 42 of file cost_learner.h.


The documentation for this class was generated from the following files:


bwi_planning
Author(s): Piyush Khandelwal , Fangkai Yang
autogenerated on Wed Aug 26 2015 10:54:52