#include <depth_publisher.h>
Definition at line 44 of file depth_publisher.h.
rc::DepthPublisher::DepthPublisher |
( |
ros::NodeHandle & |
nh, |
|
|
const std::string & |
frame_id_prefix, |
|
|
double |
f, |
|
|
double |
t, |
|
|
double |
scale |
|
) |
| |
Initialization of publisher.
- Parameters
-
nh | Node handle. |
f | Focal length, normalized to image width of 1. |
t | Basline in m. |
scale | Factor for raw disparities. |
Definition at line 42 of file depth_publisher.cc.
void rc::DepthPublisher::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
-
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 56 of file depth_publisher.cc.
bool rc::DepthPublisher::used |
( |
| ) |
|
|
overridevirtual |
float rc::DepthPublisher::scale |
|
private |
uint32_t rc::DepthPublisher::seq |
|
private |
The documentation for this class was generated from the following files: