#include <image_publisher.h>

Public Member Functions | |
| ImagePublisher (image_transport::ImageTransport &it, const std::string &frame_id_prefix, bool left, bool color, bool out1_filter) | |
| Initialization of publisher. More... | |
| void | publish (const rcg::Buffer *buffer, uint32_t part, uint64_t pixelformat) override |
| Offers a buffer for publication. More... | |
| void | publish (const rcg::Buffer *buffer, uint32_t part, uint64_t pixelformat, bool out1) |
| void | setOut1Alternate (bool alternate) |
| bool | used () override |
| Returns true if there are subscribers to the topic. More... | |
Public Member Functions inherited from rc::GenICam2RosPublisher | |
| GenICam2RosPublisher (const std::string &frame_id_prefix) | |
| virtual | ~GenICam2RosPublisher () |
Private Member Functions | |
| ImagePublisher (const ImagePublisher &) | |
| ImagePublisher & | operator= (const ImagePublisher &) |
Private Attributes | |
| bool | color |
| bool | left |
| bool | out1_alternate |
| image_transport::Publisher | pub |
| image_transport::Publisher | pub_out1_high |
| image_transport::Publisher | pub_out1_low |
| uint32_t | seq |
Additional Inherited Members | |
Protected Attributes inherited from rc::GenICam2RosPublisher | |
| std::string | frame_id |
Definition at line 45 of file image_publisher.h.
| rc::ImagePublisher::ImagePublisher | ( | image_transport::ImageTransport & | it, |
| const std::string & | frame_id_prefix, | ||
| bool | left, | ||
| bool | color, | ||
| bool | out1_filter | ||
| ) |
Initialization of publisher.
| it | Image transport handle. |
| frame_id_prefix | Prefix for frame ids in published ros messages. |
| left | True for left and false for right camera. |
| color | True for sending color instead of monochrome images. |
| out1_filter | True for also providing ...out1_low and ...out1_high topics. |
Definition at line 43 of file image_publisher.cc.
|
private |
|
private |
|
overridevirtual |
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. |
| part | Part index of image. |
| pixelformat | The pixelformat as given by buffer.getPixelFormat(). |
Implements rc::GenICam2RosPublisher.
Definition at line 81 of file image_publisher.cc.
| void rc::ImagePublisher::publish | ( | const rcg::Buffer * | buffer, |
| uint32_t | part, | ||
| uint64_t | pixelformat, | ||
| bool | out1 | ||
| ) |
Definition at line 86 of file image_publisher.cc.
|
inline |
Definition at line 64 of file image_publisher.h.
|
overridevirtual |
Returns true if there are subscribers to the topic.
Implements rc::GenICam2RosPublisher.
Definition at line 76 of file image_publisher.cc.
|
private |
Definition at line 77 of file image_publisher.h.
|
private |
Definition at line 76 of file image_publisher.h.
|
private |
Definition at line 79 of file image_publisher.h.
|
private |
Definition at line 81 of file image_publisher.h.
|
private |
Definition at line 83 of file image_publisher.h.
|
private |
Definition at line 82 of file image_publisher.h.
|
private |
Definition at line 78 of file image_publisher.h.