#include <connection_based_nodelet.h>
Public Member Functions | |
ConnectionBasedNodelet () | |
Protected Member Functions | |
template<class T > | |
ros::Publisher | advertise (ros::NodeHandle &nh, std::string topic, int queue_size) |
virtual void | connectionCallback (const ros::SingleSubscriberPublisher &pub) |
virtual void | onInit () |
virtual void | subscribe ()=0 |
virtual void | unsubscribe ()=0 |
Protected Attributes | |
boost::mutex | connection_mutex_ |
boost::shared_ptr < ros::NodeHandle > | pnh_ |
std::vector< ros::Publisher > | publishers_ |
bool | subscribed_ |
Definition at line 47 of file connection_based_nodelet.h.
Definition at line 50 of file connection_based_nodelet.h.
ros::Publisher jsk_topic_tools::ConnectionBasedNodelet::advertise | ( | ros::NodeHandle & | nh, |
std::string | topic, | ||
int | queue_size | ||
) | [inline, protected] |
Definition at line 58 of file connection_based_nodelet.h.
void jsk_topic_tools::ConnectionBasedNodelet::connectionCallback | ( | const ros::SingleSubscriberPublisher & | pub | ) | [protected, virtual] |
Definition at line 45 of file connection_based_nodelet.cpp.
void jsk_topic_tools::ConnectionBasedNodelet::onInit | ( | ) | [protected, virtual] |
Implements nodelet::Nodelet.
Reimplemented in jsk_topic_tools::DiagnosticNodelet, and jsk_topic_tools::VitalCheckerNodelet.
Definition at line 40 of file connection_based_nodelet.cpp.
virtual void jsk_topic_tools::ConnectionBasedNodelet::subscribe | ( | ) | [protected, pure virtual] |
Implemented in jsk_topic_tools::VitalCheckerNodelet.
virtual void jsk_topic_tools::ConnectionBasedNodelet::unsubscribe | ( | ) | [protected, pure virtual] |
Implemented in jsk_topic_tools::VitalCheckerNodelet.
boost::mutex jsk_topic_tools::ConnectionBasedNodelet::connection_mutex_ [protected] |
Definition at line 72 of file connection_based_nodelet.h.
boost::shared_ptr<ros::NodeHandle> jsk_topic_tools::ConnectionBasedNodelet::pnh_ [protected] |
Definition at line 74 of file connection_based_nodelet.h.
std::vector<ros::Publisher> jsk_topic_tools::ConnectionBasedNodelet::publishers_ [protected] |
Definition at line 73 of file connection_based_nodelet.h.
bool jsk_topic_tools::ConnectionBasedNodelet::subscribed_ [protected] |
Definition at line 75 of file connection_based_nodelet.h.