Generic implementation for publishing protobuf messages to ros.
More...
#include <protobuf2ros_publisher.h>
|
| Protobuf2RosPublisher (ros::NodeHandle &nh, const std::string &topic, const std::string &pbMsgType, const std::string &frame_id_prefix) |
| Internally creates a corresponding ros publisher. More...
|
|
virtual void | publish (std::shared_ptr<::google::protobuf::Message > pbMsg) |
| Publish the generic protobuf message as a corresponding Ros Message. More...
|
|
virtual bool | used () |
| Returns true if there are subscribers to the topic. More...
|
|
Generic implementation for publishing protobuf messages to ros.
Definition at line 45 of file protobuf2ros_publisher.h.
rc::Protobuf2RosPublisher::Protobuf2RosPublisher |
( |
ros::NodeHandle & |
nh, |
|
|
const std::string & |
topic, |
|
|
const std::string & |
pbMsgType, |
|
|
const std::string & |
frame_id_prefix |
|
) |
| |
void rc::Protobuf2RosPublisher::publish |
( |
std::shared_ptr<::google::protobuf::Message > |
pbMsg | ) |
|
|
virtual |
bool rc::Protobuf2RosPublisher::used |
( |
| ) |
|
|
virtual |
Returns true if there are subscribers to the topic.
- Returns
- True if there are subscribers.
Definition at line 40 of file protobuf2ros_publisher.cc.
const std::string rc::Protobuf2RosPublisher::_tfPrefix |
|
protected |
The documentation for this class was generated from the following files: