#include <controller_timed_mdp.h>
Public Member Functions | |
ControllerTimedMDP (const std::string &policy_file_path, const CONTROLLER_STATUS initial_status=STARTED) | |
void | stateCallback (const WorldSymbolConstPtr &msg) |
Private Member Functions | |
void | scheduleTimer () |
void | step () |
void | timerCallback (const ros::TimerEvent &timer_event) |
Private Attributes | |
bool | initial_state_known_ |
uint32_t | s_ |
ros::Timer | timer_ |
ControllerTimedMDP implements an MDP controller that takes actions at a fixed rate.
Definition at line 41 of file controller_timed_mdp.h.
ControllerTimedMDP::ControllerTimedMDP | ( | const std::string & | policy_file_path, |
const CONTROLLER_STATUS | initial_status = STARTED |
||
) |
Definition at line 54 of file controller_timed_mdp.cpp.
void ControllerTimedMDP::scheduleTimer | ( | ) | [private] |
Definition at line 86 of file controller_timed_mdp.cpp.
void ControllerTimedMDP::stateCallback | ( | const WorldSymbolConstPtr & | msg | ) | [virtual] |
Pure virtual callback to state information. Derived classes can define an execution strategy (synchronous or event-driven) by implementing this method accordingly.
Implements mdm_library::ControllerMDP.
Definition at line 73 of file controller_timed_mdp.cpp.
void ControllerTimedMDP::step | ( | ) | [private] |
Definition at line 117 of file controller_timed_mdp.cpp.
void ControllerTimedMDP::timerCallback | ( | const ros::TimerEvent & | timer_event | ) | [private] |
Definition at line 103 of file controller_timed_mdp.cpp.
bool mdm_library::ControllerTimedMDP::initial_state_known_ [private] |
Definition at line 59 of file controller_timed_mdp.h.
uint32_t mdm_library::ControllerTimedMDP::s_ [private] |
Definition at line 63 of file controller_timed_mdp.h.
Definition at line 61 of file controller_timed_mdp.h.