#include <disparity_publisher.h>
Definition at line 44 of file disparity_publisher.h.
rc::DisparityPublisher::DisparityPublisher |
( |
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 1. |
t | Basline in m. |
scale | Factor for raw disparities. |
Definition at line 42 of file disparity_publisher.cc.
void rc::DisparityPublisher::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 65 of file disparity_publisher.cc.
void rc::DisparityPublisher::setDisprange |
( |
int |
disprange | ) |
|
Set the disparity range for scaling of images.
- Parameters
-
disprange | Disparity range for scaling. |
Definition at line 55 of file disparity_publisher.cc.
bool rc::DisparityPublisher::used |
( |
| ) |
|
|
overridevirtual |
int rc::DisparityPublisher::disprange |
|
private |
double rc::DisparityPublisher::f |
|
private |
float rc::DisparityPublisher::scale |
|
private |
uint32_t rc::DisparityPublisher::seq |
|
private |
double rc::DisparityPublisher::t |
|
private |
The documentation for this class was generated from the following files: