35 #ifndef _ROS_PUBLISHER_H_ 36 #define _ROS_PUBLISHER_H_ 38 #include "rosserial_msgs/TopicInfo.h" 39 #include "ros/node_handle.h" 48 Publisher(
const char * topic_name,
Msg * msg,
int endpoint = rosserial_msgs::TopicInfo::ID_PUBLISHER) :
51 endpoint_(endpoint) {};
void publish(const boost::shared_ptr< M > &message) const
virtual int publish(int id, const Msg *msg)=0