POMDP Class Reference

Collaboration diagram for POMDP:
Collaboration graph
[legend]

List of all members.

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< bytegetStateSpace ()
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.

Detailed Description

Definition at line 50 of file POMDP.H.


Constructor & Destructor Documentation

POMDP::~POMDP (  ) 

Destructor.

Definition at line 62 of file POMDP.C.


Member Function Documentation

int POMDP::getAction (  ) 

which action to perform

float POMDP::getObjProb ( const Image< PixRGB< byte > > &  img,
const State  state,
const int  objID 
)

The model of the object.

Definition at line 755 of file POMDP.C.

References Image< T >::begin(), Image< T >::getHeight(), and Image< T >::getWidth().

bool POMDP::makeObservation ( const Image< PixRGB< byte > > &  img  ) 

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.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:40 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3