#include <error_depth_publisher.h>
Public Member Functions | |
ErrorDepthPublisher (ros::NodeHandle &nh, std::string frame_id_prefix, double f, double t, double scale) | |
void | publish (const rcg::Buffer *buffer, uint64_t pixelformat) override |
bool | used () override |
Private Member Functions | |
ErrorDepthPublisher (const ErrorDepthPublisher &) | |
ErrorDepthPublisher & | operator= (const ErrorDepthPublisher &) |
Private Attributes | |
rcg::ImageList | disp_list |
rcg::ImageList | err_list |
float | f |
ros::Publisher | pub |
float | scale |
uint32_t | seq |
float | t |
Definition at line 47 of file error_depth_publisher.h.
rc::ErrorDepthPublisher::ErrorDepthPublisher | ( | ros::NodeHandle & | nh, |
std::string | frame_id_prefix, | ||
double | f, | ||
double | t, | ||
double | scale | ||
) |
Initialization of publisher for depth errors.
nh | Node handle. |
f | Focal length, normalized to image width of 1. |
t | Basline in m. |
scale | Factor for raw disparities. |
Definition at line 43 of file error_depth_publisher.cc.
rc::ErrorDepthPublisher::ErrorDepthPublisher | ( | const ErrorDepthPublisher & | ) | [private] |
ErrorDepthPublisher& rc::ErrorDepthPublisher::operator= | ( | const ErrorDepthPublisher & | ) | [private] |
void rc::ErrorDepthPublisher::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.
buffer | Buffer with data to be published. |
pixelformat | The pixelformat as given by buffer.getPixelFormat(). |
Implements rc::GenICam2RosPublisher.
Definition at line 59 of file error_depth_publisher.cc.
bool rc::ErrorDepthPublisher::used | ( | ) | [override, virtual] |
Returns true if there are subscribers to the topic.
Implements rc::GenICam2RosPublisher.
Definition at line 54 of file error_depth_publisher.cc.
Definition at line 71 of file error_depth_publisher.h.
Definition at line 72 of file error_depth_publisher.h.
float rc::ErrorDepthPublisher::f [private] |
Definition at line 75 of file error_depth_publisher.h.
ros::Publisher rc::ErrorDepthPublisher::pub [private] |
Definition at line 79 of file error_depth_publisher.h.
float rc::ErrorDepthPublisher::scale [private] |
Definition at line 77 of file error_depth_publisher.h.
uint32_t rc::ErrorDepthPublisher::seq [private] |
Definition at line 74 of file error_depth_publisher.h.
float rc::ErrorDepthPublisher::t [private] |
Definition at line 76 of file error_depth_publisher.h.