Controller Class Reference
[Controller]
#include <Controller.hh>

Detailed Description
Base class for all controllersPublic Member Functions | |
| Controller (Entity *parent) | |
| virtual | ~Controller () |
| void | Load (XMLConfigNode *node) |
| void | Init () |
| void | Update (UpdateParams ¶ms) |
| void | Fini () |
| std::string | GetName () const |
Protected Member Functions | |
| virtual void | LoadChild (XMLConfigNode *) |
| virtual void | InitChild () |
| virtual void | UpdateChild (UpdateParams &) |
| virtual void | FiniChild () |
Protected Attributes | |
| std::string | name |
| Entity * | parent |
| double | updatePeriod |
| std::vector< Iface * > | ifaces |
Constructor & Destructor Documentation
| Controller | ( | Entity * | parent | ) |
| virtual ~Controller | ( | ) | [virtual] |
Destructor
Member Function Documentation
| void Load | ( | XMLConfigNode * | node | ) |
Load the controller. Called once on startup
- Parameters:
-
node The XMLConfig node pointer
- Returns:
- 0 on success
| void Init | ( | ) |
Initialize the controller. Called once on startup.
- Returns:
- 0 on success
| void Update | ( | UpdateParams & | params | ) |
Update the controller. Called every cycle.
- Parameters:
-
params Parameters to the update cycle
- Returns:
- 0 on success
| void Fini | ( | ) |
Finialize the controller. Called once on completion.
- Returns:
- 0 on success
| virtual void LoadChild | ( | XMLConfigNode * | ) | [inline, protected, virtual] |
Load function for the child class
- Returns:
- 0 on success
Reimplemented in Bandit_Actarray, Generic_Camera, ControllerStub, Factory, Pioneer2_Gripper, SickLMS200_Laser, and Pioneer2dx_Position2d.
| virtual void InitChild | ( | ) | [inline, protected, virtual] |
Init function for the child class
- Returns:
- 0 on success
Reimplemented in Bandit_Actarray, Generic_Camera, ControllerStub, Factory, Pioneer2_Gripper, SickLMS200_Laser, and Pioneer2dx_Position2d.
| virtual void UpdateChild | ( | UpdateParams & | ) | [inline, protected, virtual] |
Update function for the child class
- Returns:
- 0 on success
Reimplemented in Bandit_Actarray, Generic_Camera, ControllerStub, Factory, Pioneer2_Gripper, SickLMS200_Laser, and Pioneer2dx_Position2d.
| virtual void FiniChild | ( | ) | [inline, protected, virtual] |
Fini function for the child class
- Returns:
- 0 on success
Reimplemented in Bandit_Actarray, Generic_Camera, ControllerStub, Factory, Pioneer2_Gripper, SickLMS200_Laser, and Pioneer2dx_Position2d.
| std::string GetName | ( | ) | const |
Return the name of this controller
- Returns:
- The name of the controller
Member Data Documentation
std::string name [protected] |
The controller's name
double updatePeriod [protected] |
Update period
The documentation for this class was generated from the following file: