Classes | |
struct | State |
struct | StateAction |
Public Types | |
enum | OBJS { BACKGROUND, GOAL, AGENT, WALL, HOLE } |
enum | ACTIONS { NORTH, SOUTH, EAST, WEST } |
Public Member Functions | |
~POMDP () | |
Destructor. | |
int | getAction () |
which action to perform | |
bool | makeObservation (const Image< PixRGB< byte > > &img) |
make an observation, return if we have anything new | |
void | init () |
Image< float > | locateObject (const Image< float > &src, Image< float > &filter) |
Point2D< int > | findObject (const Image< PixRGB< byte > > &img, const char *filename) |
std::vector< Point2D< int > > | findMultipleObjects (const Image< PixRGB< byte > > &img, const char *filename) |
Point2D< int > | getAgentState () |
Point2D< int > | getGoalState () |
Image< byte > | getStateSpace () |
void | showTransitions () |
float | getTransProb (int state, int action, int newState) |
int | doAction (const int state, const int act) |
float | getReward (int state) |
void | valueIteration () |
ACTIONS | getAction (int state) |
int | getPropAction () |
void | doPolicy (const Point2D< int > &startPos) |
Image< float > | getPerception (const uint obj) |
Image< float > | makePrediction (const ACTIONS action) |
float | updatePerception (const Image< PixRGB< byte > > &img) |
void | updateStateTransitions (const ACTIONS action) |
bool | goalReached () |
bool | isExploring () |
float | bayesFilter (const int action, const Image< PixRGB< byte > > &img) |
float | particleFilter (const int action, const Image< PixRGB< byte > > &img) |
float | getEntropy (Image< float > &belif) |
float | getObjProb (const Image< PixRGB< byte > > &img, const State state, const int objID) |
The model of the object. |
Definition at line 50 of file POMDP.H.
int POMDP::getAction | ( | ) |
which action to perform
The model of the object.
Definition at line 755 of file POMDP.C.
References Image< T >::begin(), Image< T >::getHeight(), and Image< T >::getWidth().
make an observation, return if we have anything new
Definition at line 68 of file POMDP.C.
References drawFilledRect(), Image< T >::getDims(), scaleBlock(), and ZEROS.