Public Member Functions | Private Member Functions | Private Attributes | List of all members
rc::ImagePublisher Class Reference

#include <image_publisher.h>

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

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 setOut1OnlyLow (bool _out1_only_low)
 Set publishing only images with out1 low on the main topic. More...
 
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 &)
 
ImagePublisheroperator= (const ImagePublisher &)
 

Private Attributes

bool color
 
bool left
 
bool out1_only_low
 
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
 

Detailed Description

Definition at line 45 of file image_publisher.h.

Constructor & Destructor Documentation

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

Initialization of publisher.

Parameters
itImage transport handle.
frame_id_prefixPrefix for frame ids in published ros messages.
leftTrue for left and false for right camera.
colorTrue for sending color instead of monochrome images.
out1_filterTrue for also providing ...out1_low and ...out1_high topics.

Definition at line 43 of file image_publisher.cc.

rc::ImagePublisher::ImagePublisher ( const ImagePublisher )
private

Member Function Documentation

ImagePublisher& rc::ImagePublisher::operator= ( const ImagePublisher )
private
void rc::ImagePublisher::publish ( const rcg::Buffer buffer,
uint32_t  part,
uint64_t  pixelformat 
)
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.

Parameters
bufferBuffer with data to be published.
partPart index of image.
pixelformatThe 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.

void rc::ImagePublisher::setOut1OnlyLow ( bool  _out1_only_low)
inline

Set publishing only images with out1 low on the main topic.

This does have no effect on the optional ...out1_low and ...out1_high topics.

This should be true if out1 of the rc_visard is either in mode ExposureAlternateAcive or Low.

Definition at line 72 of file image_publisher.h.

bool rc::ImagePublisher::used ( )
overridevirtual

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

bool rc::ImagePublisher::color
private

Definition at line 85 of file image_publisher.h.

bool rc::ImagePublisher::left
private

Definition at line 84 of file image_publisher.h.

bool rc::ImagePublisher::out1_only_low
private

Definition at line 87 of file image_publisher.h.

image_transport::Publisher rc::ImagePublisher::pub
private

Definition at line 89 of file image_publisher.h.

image_transport::Publisher rc::ImagePublisher::pub_out1_high
private

Definition at line 91 of file image_publisher.h.

image_transport::Publisher rc::ImagePublisher::pub_out1_low
private

Definition at line 90 of file image_publisher.h.

uint32_t rc::ImagePublisher::seq
private

Definition at line 86 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 Sat Feb 13 2021 03:42:55