Public Member Functions | Protected Attributes | Private Member Functions
rc::Protobuf2RosPublisher Class Reference

#include <protobuf2ros_publisher.h>

List of all members.

Public Member Functions

 Protobuf2RosPublisher (ros::NodeHandle &nh, const std::string &topic, const std::string &pbMsgType, const std::string &frame_id_prefix)
virtual void publish (std::shared_ptr<::google::protobuf::Message > pbMsg)
virtual bool used ()

Protected Attributes

const std::string _tfPrefix
ros::Publisher pub

Private Member Functions

Protobuf2RosPublisheroperator= (const Protobuf2RosPublisher &)

Detailed Description

Generic implementation for publishing protobuf messages to ros

Definition at line 50 of file protobuf2ros_publisher.h.


Constructor & Destructor Documentation

rc::Protobuf2RosPublisher::Protobuf2RosPublisher ( ros::NodeHandle nh,
const std::string &  topic,
const std::string &  pbMsgType,
const std::string &  frame_id_prefix 
)

Internally creates a corresponding ros publisher

Definition at line 22 of file protobuf2ros_publisher.cc.


Member Function Documentation

Protobuf2RosPublisher& rc::Protobuf2RosPublisher::operator= ( const Protobuf2RosPublisher ) [private]
void rc::Protobuf2RosPublisher::publish ( std::shared_ptr<::google::protobuf::Message >  pbMsg) [virtual]

Publish the generic protobuf message as a corresponding Ros Message

Definition at line 49 of file protobuf2ros_publisher.cc.

Returns true if there are subscribers to the topic.

Returns:
True if there are subscribers.

Definition at line 43 of file protobuf2ros_publisher.cc.


Member Data Documentation

const std::string rc::Protobuf2RosPublisher::_tfPrefix [protected]

Definition at line 75 of file protobuf2ros_publisher.h.

Definition at line 74 of file protobuf2ros_publisher.h.


The documentation for this class was generated from the following files:


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:12