RUSH
Reusable Utilities in Single Headers is a collection of header-only utilities for C++
|
This class extends ros::Publisher to directly publish OpenCV matrices. More...
#include <ros-cv-bridge.hpp>
Public Member Functions | |
Publisher & | operator= (const ros::Publisher &x) |
void | publish (const cv::Mat &img, const ros::Time &time=ros::Time::now(), const std::string &frame_id="") |
Publishes an OpenCV Mat as a ROS Image message. | |
This class extends ros::Publisher to directly publish OpenCV matrices.
|
inline |
Publishes an OpenCV Mat as a ROS Image message.
img | The input OpenCV Mat to be published. |
time | The ROS time to be associated with the message. |
frame_id | The frame ID for the ROS message. |