18 #ifndef BASIC_PUBLISHER_HPP
19 #define BASIC_PUBLISHER_HPP
45 inline std::string
topic()
const
58 return pub_.getNumSubscribers() > 0;
66 virtual void reset( ros::NodeHandle& nh )
std::string topic() const
Definition: basic.hpp:45
bool isInitialized() const
Definition: basic.hpp:50
bool is_initialized_
Definition: basic.hpp:75
virtual ~BasicPublisher()
Definition: basic.hpp:43
virtual void publish(const T &msg)
Definition: basic.hpp:61
virtual void reset(ros::NodeHandle &nh)
Definition: basic.hpp:66
std::string topic_
Definition: basic.hpp:73
ros::Publisher pub_
Definition: basic.hpp:78
virtual bool isSubscribed() const
Definition: basic.hpp:55
BasicPublisher(const std::string &topic)
Definition: basic.hpp:38