Controller template. More...
#include <default_controller.hpp>
Public Member Functions | |
Controller () | |
bool | disable () |
Disables the controller. | |
bool | enable () |
Enables the controller. | |
bool | getState () |
Returns the current state of the controller. | |
virtual bool | init ()=0 |
Initialise the controller. | |
virtual void | spin () |
For complex controlling work. | |
virtual | ~Controller () |
Private Attributes | |
bool | controller_active_ |
Controller template.
Use this class for implementing various controllers.
Definition at line 57 of file default_controller.hpp.
yocs::Controller::Controller | ( | ) | [inline] |
Definition at line 60 of file default_controller.hpp.
virtual yocs::Controller::~Controller | ( | ) | [inline, virtual] |
Definition at line 62 of file default_controller.hpp.
bool yocs::Controller::disable | ( | ) | [inline] |
Disables the controller.
Definition at line 95 of file default_controller.hpp.
bool yocs::Controller::enable | ( | ) | [inline] |
Enables the controller.
Definition at line 77 of file default_controller.hpp.
bool yocs::Controller::getState | ( | ) | [inline] |
Returns the current state of the controller.
Definition at line 113 of file default_controller.hpp.
virtual bool yocs::Controller::init | ( | ) | [pure virtual] |
Initialise the controller.
Needs to be defined by any class inheriting from SafetyController
virtual void yocs::Controller::spin | ( | ) | [inline, virtual] |
For complex controlling work.
If needed, implement your complex algorithm here.
Definition at line 122 of file default_controller.hpp.
bool yocs::Controller::controller_active_ [private] |
Definition at line 125 of file default_controller.hpp.