A space representing discrete controls; i.e. there are a small number of discrete controls the system can react to. Controls are represented as integers [lowerBound, upperBound], where lowerBound and upperBound are inclusive. More...
#include <DiscreteControlSpace.h>
Classes | |
class | ControlType |
The definition of a discrete control. More... | |
Public Member Functions | |
DiscreteControlSpace (const base::StateSpacePtr &stateSpace, int lowerBound, int upperBound) | |
Construct a discrete space in wich controls can take values in the set [lowerBound, upperBound]. | |
virtual unsigned int | getDimension (void) const |
Get the dimension of this control space. | |
virtual void | copyControl (Control *destination, const Control *source) const |
Copy a control to another. | |
virtual bool | equalControls (const Control *control1, const Control *control2) const |
Check if two controls are the same. | |
virtual ControlSamplerPtr | allocDefaultControlSampler (void) const |
Allocate the default control sampler. | |
virtual Control * | allocControl (void) const |
Allocate memory for a control. | |
virtual void | freeControl (Control *control) const |
Free the memory of a control. | |
virtual void | nullControl (Control *control) const |
This sets the control value to lowerBound_. | |
virtual void | printControl (const Control *control, std::ostream &out) const |
Print a control to a stream. | |
virtual void | printSettings (std::ostream &out) const |
Print the settings for this control space to a stream. | |
unsigned int | getControlCount (void) const |
Returns the number of controls possible. | |
int | getLowerBound (void) const |
Returns the lowest possible control value. | |
int | getUpperBound (void) const |
Returns the highest possible control value. | |
void | setBounds (int lowerBound, int upperBound) |
Set the bounds for the states in this space (the states will be in the set [lowerBound, upperBound]. | |
virtual void | setup (void) |
Perform final setup steps. This function is automatically called by the SpaceInformation. | |
Protected Attributes | |
int | lowerBound_ |
The lowest integer state. | |
int | upperBound_ |
The highest integer state. |
A space representing discrete controls; i.e. there are a small number of discrete controls the system can react to. Controls are represented as integers [lowerBound, upperBound], where lowerBound and upperBound are inclusive.
Definition at line 64 of file DiscreteControlSpace.h.