#include <controller_event_mdp.h>

Public Member Functions | |
| ControllerEventMDP (const std::string &policy_file_path, const CONTROLLER_STATUS initial_status=STARTED) | |
| void | stateCallback (const WorldSymbolConstPtr &msg) |
ControllerEventMDP implements an asynchronous MDP controller, driven by changes in the system state. : Accepting a policy file, containing a string of separated integer values.
Definition at line 41 of file controller_event_mdp.h.
| ControllerEventMDP::ControllerEventMDP | ( | const std::string & | policy_file_path, |
| const CONTROLLER_STATUS | initial_status = STARTED |
||
| ) |
Alternative constructor. This form bypasses the problem file parsing step, so it is faster, and can be used if a MADP-compatible problem file isn't available. However, you can't log the reward at run-time, and the action metadata will not contain any action names.
| nr_actions | The number of actions of this MDP. |
| nr_states | The number of states of this MDP. |
| q_value_function_file | A file defining the Q-value function of this MDP, as a whitespace-separated |S|x|A| matrix of floating point numbers. If you have an explicit policy instead, convert it to a matrix where the only non-zero entries exist in the specified (s,a) pairs. |
| initial_status | (optional) The initial status of this controller. |
Definition at line 45 of file controller_event_mdp.cpp.
| void ControllerEventMDP::stateCallback | ( | const WorldSymbolConstPtr & | msg | ) | [virtual] |
The callback to incoming state information. This will trigger a new decision step.
Implements mdm_library::ControllerMDP.
Definition at line 55 of file controller_event_mdp.cpp.