This class implements a a software Emergency Stop. More...
#include <EmergencyStop.hpp>
Public Member Functions | |
EmergencyStop (RTT::TaskContext *axes) | |
Constructor of the EmergencyStop. | |
bool | addEvent (RTT::TaskContext *task, const std::string &eventname) |
function to add an event that will fire the EmergencyStop | |
void | callback (std::string message) |
Callback function, will be executed when one of the events is fired. |
This class implements a a software Emergency Stop.
It has a pointer to a nAxesVelocityController and will call stopAllAxes and lockAllAxes if needed. Different events from different components can be added. If one of the events is fired the nAxesVelocityController will be stopped.
Definition at line 35 of file EmergencyStop.hpp.
EmergencyStop | ( | RTT::TaskContext * | axes | ) | [inline] |
Constructor of the EmergencyStop.
axes | pointer to an nAxesVelocityController (TaskContext) |
Definition at line 43 of file EmergencyStop.hpp.
bool addEvent | ( | RTT::TaskContext * | task, | |
const std::string & | eventname | |||
) | [inline] |
function to add an event that will fire the EmergencyStop
task | pointer to the events' TaskContext | |
eventname | name of the event |
Definition at line 61 of file EmergencyStop.hpp.
References EmergencyStop::callback().
void callback | ( | std::string | message | ) | [inline] |
Callback function, will be executed when one of the events is fired.
message | Message of the event, will be displayed in EmergencyStop message |
Definition at line 87 of file EmergencyStop.hpp.
Referenced by EmergencyStop::addEvent().