18 #include <opencv2/highgui.hpp> 20 #include <sensor_msgs/Image.h> 22 #include <mrpt/ros1bridge/time.h> 23 #include <mrpt/ros1bridge/image.h> 32 const sensor_msgs::Image& msg, mrpt::obs::CObservationImage& obj)
34 obj.timestamp = mrpt::ros1bridge::fromROS(msg.header.stamp);
35 obj.image = mrpt::ros1bridge::fromROS(msg);
40 const mrpt::obs::CObservationImage& obj,
const std_msgs::Header& msg_header,
41 sensor_msgs::Image& msg)
43 msg = mrpt::ros1bridge::toROS(obj.image, msg_header);
bool ros2mrpt(const sensor_msgs::Image &msg, mrpt::obs::CObservationImage &obj)
bool mrpt2ros(const mrpt::obs::CObservationImage &obj, const std_msgs::Header &msg_header, sensor_msgs::Image &msg)