Controller template. More...
#include <default_controller.hpp>
Public Member Functions | |
Controller () | |
bool | disable () |
Disables the controller. More... | |
bool | enable () |
Enables the controller. More... | |
bool | getState () |
Returns the current state of the controller. More... | |
virtual bool | init ()=0 |
Initialise the controller. More... | |
virtual void | spin () |
For complex controlling work. More... | |
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.
|
inline |
Definition at line 60 of file default_controller.hpp.
|
inlinevirtual |
Definition at line 62 of file default_controller.hpp.
|
inline |
Disables the controller.
Definition at line 95 of file default_controller.hpp.
|
inline |
Enables the controller.
Definition at line 77 of file default_controller.hpp.
|
inline |
Returns the current state of the controller.
Definition at line 113 of file default_controller.hpp.
|
pure virtual |
Initialise the controller.
Needs to be defined by any class inheriting from SafetyController
|
inlinevirtual |
For complex controlling work.
If needed, implement your complex algorithm here.
Definition at line 122 of file default_controller.hpp.
|
private |
Definition at line 125 of file default_controller.hpp.