#include <RelayNode.h>
Public Member Functions | |
RelayNode (ros::NodeHandle &nh, ros::NodeHandle &nh_priv) | |
~RelayNode () | |
Private Member Functions | |
void | publishReady (bool ready) |
void | publishSerial (const std::string &serial) |
void | recv (const std_msgs::Byte::ConstPtr &msg) |
void | serviceDevice () |
void | timerCallback (const ros::WallTimerEvent &event) |
Private Attributes | |
ftdi_context * | ctx_ |
bool | open_ |
std::string | param_desc_ |
std::string | param_serial_ |
ros::Publisher | pub_ready_ |
ros::Publisher | pub_serial_ |
std::string | serial_live_ |
ros::Subscriber | sub_ |
ros::WallTimer | timer_ |
Definition at line 48 of file RelayNode.h.
sainsmart_relay_usb::RelayNode::RelayNode | ( | ros::NodeHandle & | nh, |
ros::NodeHandle & | nh_priv | ||
) |
Definition at line 41 of file RelayNode.cpp.
Definition at line 65 of file RelayNode.cpp.
void sainsmart_relay_usb::RelayNode::publishReady | ( | bool | ready | ) | [inline, private] |
Definition at line 59 of file RelayNode.h.
void sainsmart_relay_usb::RelayNode::publishSerial | ( | const std::string & | serial | ) | [inline, private] |
Definition at line 63 of file RelayNode.h.
void sainsmart_relay_usb::RelayNode::recv | ( | const std_msgs::Byte::ConstPtr & | msg | ) | [private] |
Definition at line 75 of file RelayNode.cpp.
void sainsmart_relay_usb::RelayNode::serviceDevice | ( | ) | [private] |
Definition at line 91 of file RelayNode.cpp.
void sainsmart_relay_usb::RelayNode::timerCallback | ( | const ros::WallTimerEvent & | event | ) | [private] |
Definition at line 137 of file RelayNode.cpp.
ftdi_context* sainsmart_relay_usb::RelayNode::ctx_ [private] |
Definition at line 76 of file RelayNode.h.
bool sainsmart_relay_usb::RelayNode::open_ [private] |
Definition at line 89 of file RelayNode.h.
std::string sainsmart_relay_usb::RelayNode::param_desc_ [private] |
Definition at line 70 of file RelayNode.h.
std::string sainsmart_relay_usb::RelayNode::param_serial_ [private] |
Definition at line 69 of file RelayNode.h.
Definition at line 82 of file RelayNode.h.
Definition at line 83 of file RelayNode.h.
std::string sainsmart_relay_usb::RelayNode::serial_live_ [private] |
Definition at line 86 of file RelayNode.h.
Definition at line 79 of file RelayNode.h.
Definition at line 73 of file RelayNode.h.