35 #ifndef ROSRT_PUBLISHER_H
36 #define ROSRT_PUBLISHER_H
43 #include <boost/utility.hpp>
66 *clone = *boost::static_pointer_cast<M const>(msg);
75 return publish(pub, msg, publishMessage<M>, cloneMessage<M>);
116 Publisher(
ros::NodeHandle& nh,
const std::string& topic, uint32_t ros_publisher_queue_size, uint32_t message_pool_size,
const M& tmpl)
118 initialize(nh, topic, ros_publisher_queue_size, message_pool_size, tmpl);
148 void initialize(
ros::NodeHandle& nh,
const std::string& topic, uint32_t ros_publisher_queue_size, uint32_t message_pool_size,
const M& tmpl)
158 return detail::publish<M>(
pub_, msg);
183 #endif // ROSRT_PUBLISHER_H