Public Member Functions | Private Member Functions | Private Attributes
rc::ImagePublisher Class Reference

#include <image_publisher.h>

Inheritance diagram for rc::ImagePublisher:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ImagePublisher (image_transport::ImageTransport &it, std::string frame_id_prefix, bool left, bool color)
void publish (const rcg::Buffer *buffer, uint64_t pixelformat) override
bool used () override

Private Member Functions

 ImagePublisher (const ImagePublisher &)
ImagePublisheroperator= (const ImagePublisher &)

Private Attributes

bool color
bool left
image_transport::Publisher pub
uint32_t seq

Detailed Description

Definition at line 46 of file image_publisher.h.


Constructor & Destructor Documentation

rc::ImagePublisher::ImagePublisher ( image_transport::ImageTransport it,
std::string  frame_id_prefix,
bool  left,
bool  color 
)

Initialization of publisher.

Parameters:
itImage transport handle.
leftTrue for left and false for right camera.
colorTrue for sending color instead of monochrome images.

Definition at line 44 of file image_publisher.cc.


Member Function Documentation

ImagePublisher& rc::ImagePublisher::operator= ( const ImagePublisher ) [private]
void rc::ImagePublisher::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.

Parameters:
bufferBuffer with data to be published.
pixelformatThe pixelformat as given by buffer.getPixelFormat().

Implements rc::GenICam2RosPublisher.

Definition at line 99 of file image_publisher.cc.

bool rc::ImagePublisher::used ( ) [override, virtual]

Returns true if there are subscribers to the topic.

Returns:
True if there are subscribers.

Implements rc::GenICam2RosPublisher.

Definition at line 76 of file image_publisher.cc.


Member Data Documentation

Definition at line 70 of file image_publisher.h.

Definition at line 69 of file image_publisher.h.

Definition at line 73 of file image_publisher.h.

uint32_t rc::ImagePublisher::seq [private]

Definition at line 71 of file image_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