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

#include <camera_info_publisher.h>

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

List of all members.

Public Member Functions

 CameraInfoPublisher (ros::NodeHandle &nh, std::string _frame_id, double f, double t, bool left)
void publish (const rcg::Buffer *buffer, uint64_t pixelformat) override
bool used () override

Private Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 45 of file camera_info_publisher.h.


Constructor & Destructor Documentation

rc::CameraInfoPublisher::CameraInfoPublisher ( ros::NodeHandle nh,
std::string  _frame_id,
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 41 of file camera_info_publisher.cc.


Member Function Documentation

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

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

Returns true if there are subscribers to the topic.

Returns:
True if there are subscribers.

Implements rc::GenICam2RosPublisher.

Definition at line 84 of file camera_info_publisher.cc.


Member Data Documentation

float rc::CameraInfoPublisher::f [private]

Definition at line 69 of file camera_info_publisher.h.

sensor_msgs::CameraInfo rc::CameraInfoPublisher::info [private]

Definition at line 71 of file camera_info_publisher.h.

Definition at line 72 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 Thu Jun 6 2019 20:43:12