ROS wrapper of the State Machine Class. More...
#include <rostate_machine.h>
Public Member Functions | |
RostateMachine (ros::NodeHandle nh, ros::NodeHandle pnh) | |
Construct a new Rostate Machine:: Rostate Machine object. More... | |
void | run () |
Run State Machine (Enable Transitions) More... | |
~RostateMachine () | |
Destroy the Rostate Machine:: Rostate Machine object. More... | |
Private Member Functions | |
void | eventCallback (const ros::MessageEvent< rostate_machine::Event const > &event) |
Callback Function for Trigger Event Topic. More... | |
void | publishCurrentState () |
Publish Current State Topic. More... | |
Private Attributes | |
ros::Publisher | current_state_pub_ |
std::string | description_ |
std::string | dot_filepath_ |
ros::Publisher | dot_string_pub_ |
ros::NodeHandle | nh_ |
ros::NodeHandle | pnh_ |
double | publish_rate_ |
boost::circular_buffer< std::string > | state_buf_ |
std::string | state_machine_name_ |
std::shared_ptr< StateMachine > | state_machine_ptr_ |
ros::Subscriber | trigger_event_sub_ |
ROS wrapper of the State Machine Class.
Definition at line 37 of file rostate_machine.h.
RostateMachine::RostateMachine | ( | ros::NodeHandle | nh, |
ros::NodeHandle | pnh | ||
) |
Construct a new Rostate Machine:: Rostate Machine object.
nh | NodeHandle |
pnh | Private NodeHandle |
Definition at line 20 of file rostate_machine.cpp.
RostateMachine::~RostateMachine | ( | ) |
Destroy the Rostate Machine:: Rostate Machine object.
Definition at line 33 of file rostate_machine.cpp.
|
private |
Callback Function for Trigger Event Topic.
event | Event Message for the rostate_machine package. |
Definition at line 43 of file rostate_machine.cpp.
|
private |
Publish Current State Topic.
Definition at line 81 of file rostate_machine.cpp.
void RostateMachine::run | ( | ) |
Run State Machine (Enable Transitions)
Definition at line 66 of file rostate_machine.cpp.
|
private |
Definition at line 51 of file rostate_machine.h.
|
private |
Definition at line 54 of file rostate_machine.h.
|
private |
Definition at line 55 of file rostate_machine.h.
|
private |
Definition at line 50 of file rostate_machine.h.
|
private |
Definition at line 48 of file rostate_machine.h.
|
private |
Definition at line 49 of file rostate_machine.h.
|
private |
Definition at line 56 of file rostate_machine.h.
|
private |
Definition at line 47 of file rostate_machine.h.
|
private |
Definition at line 53 of file rostate_machine.h.
|
private |
Definition at line 46 of file rostate_machine.h.
|
private |
Definition at line 52 of file rostate_machine.h.