#include <disparity_color_publisher.h>
Public Member Functions | |
DisparityColorPublisher (image_transport::ImageTransport &it, std::string frame_id_prefix, double scale) | |
void | publish (const rcg::Buffer *buffer, uint64_t pixelformat) override |
void | setDisprange (int disprange) |
bool | used () override |
Private Member Functions | |
DisparityColorPublisher (const DisparityColorPublisher &) | |
DisparityColorPublisher & | operator= (const DisparityColorPublisher &) |
Private Attributes | |
int | disprange |
image_transport::Publisher | pub |
double | scale |
uint32_t | seq |
Definition at line 46 of file disparity_color_publisher.h.
rc::DisparityColorPublisher::DisparityColorPublisher | ( | image_transport::ImageTransport & | it, |
std::string | frame_id_prefix, | ||
double | scale | ||
) |
Initialization of publisher.
it | Image transport handle. |
left | True for left and false for right camera. |
color | True for sending color instead of monochrome images. |
Definition at line 43 of file disparity_color_publisher.cc.
rc::DisparityColorPublisher::DisparityColorPublisher | ( | const DisparityColorPublisher & | ) | [private] |
DisparityColorPublisher& rc::DisparityColorPublisher::operator= | ( | const DisparityColorPublisher & | ) | [private] |
void rc::DisparityColorPublisher::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 64 of file disparity_color_publisher.cc.
void rc::DisparityColorPublisher::setDisprange | ( | int | disprange | ) |
Set the disparity range for scaling of images.
disprange | Disparity range for scaling. |
Definition at line 54 of file disparity_color_publisher.cc.
bool rc::DisparityColorPublisher::used | ( | ) | [override, virtual] |
Returns true if there are subscribers to the topic.
Implements rc::GenICam2RosPublisher.
Definition at line 59 of file disparity_color_publisher.cc.
int rc::DisparityColorPublisher::disprange [private] |
Definition at line 79 of file disparity_color_publisher.h.
Definition at line 81 of file disparity_color_publisher.h.
double rc::DisparityColorPublisher::scale [private] |
Definition at line 78 of file disparity_color_publisher.h.
uint32_t rc::DisparityColorPublisher::seq [private] |
Definition at line 77 of file disparity_color_publisher.h.