Public Member Functions
mdm_library::ControllerEventMDP Class Reference

#include <controller_event_mdp.h>

Inheritance diagram for mdm_library::ControllerEventMDP:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ControllerEventMDP (const std::string &policy_file_path, const CONTROLLER_STATUS initial_status=STARTED)
void stateCallback (const WorldSymbolConstPtr &msg)

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
nr_actionsThe number of actions of this MDP.
nr_statesThe number of states of this MDP.
q_value_function_fileA 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.


Member Function Documentation

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.


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


mdm_library
Author(s): Joao Messias
autogenerated on Wed Aug 26 2015 12:28:41