Message handler that relays joint positions (converts simple message types to ROS message types and publishes them) More...
#include <io_state_relay_handler.h>
Public Member Functions | |
bool | init (industrial::smpl_msg_connection::SmplMsgConnection *connection) |
Class initializer. More... | |
IOStateRelayHandler () | |
Constructor. More... | |
Protected Member Functions | |
bool | internalCB (fsrobo_r_driver::simple_message::io_state_message::IOStateMessage &in) |
Callback executed upon receiving a robot status message. More... | |
Protected Attributes | |
ros::NodeHandle | node_ |
ros::Publisher | pub_io_states_ |
Private Member Functions | |
void | createAnalogMessage (int data, int n, int base_ch, fsrobo_r_msgs::Analog &a) |
void | createDigitalMessage (int data, int n, int base_addr, fsrobo_r_msgs::Digital &d) |
bool | internalCB (industrial::simple_message::SimpleMessage &in) |
Callback executed upon receiving a message. More... | |
Message handler that relays joint positions (converts simple message types to ROS message types and publishes them)
THIS CLASS IS NOT THREAD-SAFE
Definition at line 50 of file io_state_relay_handler.h.
|
inline |
Constructor.
Definition at line 60 of file io_state_relay_handler.h.
|
private |
Definition at line 129 of file io_state_relay_handler.cpp.
|
private |
Definition at line 120 of file io_state_relay_handler.cpp.
bool fsrobo_r_driver::io_state_relay_handler::IOStateRelayHandler::init | ( | industrial::smpl_msg_connection::SmplMsgConnection * | connection | ) |
Class initializer.
connection | simple message connection that will be used to send replies. |
Definition at line 45 of file io_state_relay_handler.cpp.
|
protected |
Callback executed upon receiving a robot status message.
in | incoming message |
Definition at line 65 of file io_state_relay_handler.cpp.
|
privatevirtual |
Callback executed upon receiving a message.
in | incoming message |
Implements industrial::message_handler::MessageHandler.
Definition at line 52 of file io_state_relay_handler.cpp.
|
protected |
Definition at line 75 of file io_state_relay_handler.h.
|
protected |
Definition at line 74 of file io_state_relay_handler.h.