ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

In the source code of stereo_image_proc from ROS, you can see the part that converts from cv::Mat to pointCloud2 message. You can refer to that part and modify as you see fit.

https://github.com/ros-perception/image_pipeline/blob/indigo/stereo_image_proc/src/nodelets/point_cloud2.cpp#L159

Best!