Public Member Functions | Public Attributes | Protected Member Functions
momdp::POMDP Class Reference

#include <POMDP.h>

Inheritance diagram for momdp::POMDP:
Inheritance graph
[legend]

List of all members.

Public Member Functions

int getBeliefSize (void)
belief_vectorgetInitialBelief (void)
belief_vectorgetInitialState (void)
bool getIsTerminalState (belief_vector &s)
REAL_VALUE getMaxReward ()
belief_vectorgetNextBelief (belief_vector &result, belief_vector &b, int a, int o)
state_vectorgetNextState (state_vector &result, belief_vector &s, int a, int o)
int getNumObservations (void)
SparseMatrixgetObservationMatrix (int a)
obs_prob_vectorgetObsProbVector (obs_prob_vector &result, belief_vector &b, int a)
outcome_prob_vectorgetOutcomeProbVector (outcome_prob_vector &result, belief_vector &b, int a)
void getPossibleActions (std::vector< int > &result, belief_vector bel)
 this gets the list of possible actions which can be taken
void getPossibleObservations (std::vector< int > &result, std::vector< REAL_VALUE > &resultProbs, belief_vector &bel, int act)
 this calculates the list of possible observations
REAL_VALUE getReward (belief_vector &b, int a)
SparseMatrixgetRewardMatrix ()
SparseMatrixgetTransitionMatrix (int a)
SparseMatrixgetTransposedObservationMatrix (int a)
SparseMatrixgetTransposedTransitionMatrix (int a)
 POMDP (void)
 POMDP (std::string &fileName, bool useFastParser=false)
void readFromFile (std::string &fileName, bool useFastParser=false)
void setBeliefSize (int beliefSize)
void setNumObservations (int _numObservations)

Public Attributes

std::string fileName
SparseVector initialBelief
std::vector< int > isPOMDPTerminalState
int numObservations
int numStates
std::vector< SparseMatrixO
std::vector< SparseMatrixOtr
SparseMatrix R
std::vector< SparseMatrixT
std::vector< SparseMatrixTtr

Protected Member Functions

void debugDensity (void)
void readFromFileCassandra (std::string &fileName)
void readFromFileFast (std::string &fileName)
void readFromFileFast2 (std::string &fileName)

Detailed Description

Definition at line 39 of file POMDP.h.


Constructor & Destructor Documentation

momdp::POMDP::POMDP ( void  ) [inline]

Definition at line 55 of file POMDP.h.

momdp::POMDP::POMDP ( std::string &  fileName,
bool  useFastParser = false 
)

Definition at line 89 of file POMDP.cpp.


Member Function Documentation

void momdp::POMDP::debugDensity ( void  ) [protected]

Definition at line 737 of file POMDP.cpp.

int momdp::POMDP::getBeliefSize ( void  ) [inline]

Definition at line 119 of file POMDP.h.

Definition at line 151 of file POMDP.cpp.

belief_vector& momdp::POMDP::getInitialState ( void  ) [inline, virtual]

Implements momdp::MDP.

Definition at line 125 of file POMDP.h.

Definition at line 195 of file POMDP.cpp.

Definition at line 144 of file POMDP.cpp.

belief_vector & momdp::POMDP::getNextBelief ( belief_vector result,
belief_vector b,
int  a,
int  o 
)

Definition at line 174 of file POMDP.cpp.

state_vector& momdp::POMDP::getNextState ( state_vector result,
belief_vector s,
int  a,
int  o 
) [inline]

Definition at line 130 of file POMDP.h.

int momdp::POMDP::getNumObservations ( void  ) [inline]

Definition at line 120 of file POMDP.h.

Definition at line 132 of file POMDP.cpp.

Definition at line 157 of file POMDP.cpp.

Definition at line 127 of file POMDP.h.

void momdp::POMDP::getPossibleActions ( std::vector< int > &  result,
belief_vector  bel 
)

this gets the list of possible actions which can be taken

added on 20th june ajain

Parameters:
resultthe list of action ids
belcurrent belief vector

Definition at line 765 of file POMDP.cpp.

void momdp::POMDP::getPossibleObservations ( std::vector< int > &  result,
std::vector< REAL_VALUE > &  resultProbs,
belief_vector bel,
int  act 
)

this calculates the list of possible observations

added on 29th June ajain

Parameters:
resultthe plausible observations being returned
resultProbsthe probability of witnessing an observation
belcurrent belief
actaction taken to reach the belief

Definition at line 753 of file POMDP.cpp.

Definition at line 190 of file POMDP.cpp.

Definition at line 140 of file POMDP.cpp.

Definition at line 124 of file POMDP.cpp.

Definition at line 136 of file POMDP.cpp.

Definition at line 128 of file POMDP.cpp.

void momdp::POMDP::readFromFile ( std::string &  fileName,
bool  useFastParser = false 
)

Definition at line 98 of file POMDP.cpp.

void momdp::POMDP::readFromFileCassandra ( std::string &  fileName) [protected]

Definition at line 201 of file POMDP.cpp.

void momdp::POMDP::readFromFileFast ( std::string &  fileName) [protected]

Definition at line 556 of file POMDP.cpp.

void momdp::POMDP::readFromFileFast2 ( std::string &  fileName) [protected]

Definition at line 326 of file POMDP.cpp.

void momdp::POMDP::setBeliefSize ( int  beliefSize) [inline]

Definition at line 121 of file POMDP.h.

void momdp::POMDP::setNumObservations ( int  _numObservations) [inline]

Definition at line 122 of file POMDP.h.


Member Data Documentation

Definition at line 43 of file POMDP.h.

Definition at line 46 of file POMDP.h.

Definition at line 53 of file POMDP.h.

Definition at line 42 of file POMDP.h.

Definition at line 42 of file POMDP.h.

Definition at line 51 of file POMDP.h.

Definition at line 51 of file POMDP.h.

Definition at line 49 of file POMDP.h.

Definition at line 51 of file POMDP.h.

Definition at line 51 of file POMDP.h.


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


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:30