#include <confidence_publisher.h>
Public Member Functions | |
ConfidencePublisher (ros::NodeHandle &nh, std::string frame_id_prefix) | |
void | publish (const rcg::Buffer *buffer, uint64_t pixelformat) override |
bool | used () override |
Private Member Functions | |
ConfidencePublisher (const ConfidencePublisher &) | |
ConfidencePublisher & | operator= (const ConfidencePublisher &) |
Private Attributes | |
ros::Publisher | pub |
uint32_t | seq |
Definition at line 45 of file confidence_publisher.h.
rc::ConfidencePublisher::ConfidencePublisher | ( | ros::NodeHandle & | nh, |
std::string | frame_id_prefix | ||
) |
Initialization of publisher.
nh | Node handle. |
Definition at line 43 of file confidence_publisher.cc.
rc::ConfidencePublisher::ConfidencePublisher | ( | const ConfidencePublisher & | ) | [private] |
ConfidencePublisher& rc::ConfidencePublisher::operator= | ( | const ConfidencePublisher & | ) | [private] |
void rc::ConfidencePublisher::publish | ( | const rcg::Buffer * | buffer, |
uint64_t | pixelformat | ||
) | [override, virtual] |
Offers a buffer for publication. It depends on the the kind of buffer data and the implementation and configuration of the sub-class if the data is published.
buffer | Buffer with data to be published. |
pixelformat | The pixelformat as given by buffer.getPixelFormat(). |
Implements rc::GenICam2RosPublisher.
Definition at line 55 of file confidence_publisher.cc.
bool rc::ConfidencePublisher::used | ( | ) | [override, virtual] |
Returns true if there are subscribers to the topic.
Implements rc::GenICam2RosPublisher.
Definition at line 50 of file confidence_publisher.cc.
ros::Publisher rc::ConfidencePublisher::pub [private] |
Definition at line 67 of file confidence_publisher.h.
uint32_t rc::ConfidencePublisher::seq [private] |
Definition at line 66 of file confidence_publisher.h.