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

#include <camera_info_publisher.h>

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

Public Member Functions

 CameraInfoPublisher (ros::NodeHandle &nh, const std::string &frame_id_prefix, double f, double t, bool left)
 Initialization of publisher. More...
 
void publish (const rcg::Buffer *buffer, uint32_t part, uint64_t pixelformat) override
 Offers a buffer for publication. 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

 CameraInfoPublisher (const CameraInfoPublisher &)
 
CameraInfoPublisheroperator= (const CameraInfoPublisher &)
 

Private Attributes

float f
 
sensor_msgs::CameraInfo info
 
float p3_factor
 
ros::Publisher pub
 

Additional Inherited Members

- Protected Attributes inherited from rc::GenICam2RosPublisher
std::string frame_id
 

Detailed Description

Definition at line 44 of file camera_info_publisher.h.

Constructor & Destructor Documentation

rc::CameraInfoPublisher::CameraInfoPublisher ( ros::NodeHandle nh,
const std::string &  frame_id_prefix,
double  f,
double  t,
bool  left 
)

Initialization of publisher.

Parameters
nhNode handle.
fFocal length, normalized to image width 1.
tBaseline in m.
leftTrue for left and false for right camera.

Definition at line 40 of file camera_info_publisher.cc.

rc::CameraInfoPublisher::CameraInfoPublisher ( const CameraInfoPublisher )
private

Member Function Documentation

CameraInfoPublisher& rc::CameraInfoPublisher::operator= ( const CameraInfoPublisher )
private
void rc::CameraInfoPublisher::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 110 of file camera_info_publisher.cc.

bool rc::CameraInfoPublisher::used ( )
overridevirtual

Returns true if there are subscribers to the topic.

Returns
True if there are subscribers.

Implements rc::GenICam2RosPublisher.

Definition at line 105 of file camera_info_publisher.cc.

Member Data Documentation

float rc::CameraInfoPublisher::f
private

Definition at line 66 of file camera_info_publisher.h.

sensor_msgs::CameraInfo rc::CameraInfoPublisher::info
private

Definition at line 69 of file camera_info_publisher.h.

float rc::CameraInfoPublisher::p3_factor
private

Definition at line 67 of file camera_info_publisher.h.

ros::Publisher rc::CameraInfoPublisher::pub
private

Definition at line 70 of file camera_info_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 Wed Mar 20 2019 07:55:49