Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 171

Extract video from PointCloud2

$
0
0
I have a rosbag file with sensor_msgs/PointCloud2 data. I want to extract a video from these data. All the ROS tools I found is related to the extraction of video from an Image topic. Is it possible to create a video directly from PointCloud2? Or, is there a straightforward way to revert the PointCloud2 to the original image and depth topics? Thanks to Martin Gunther I used the `convert_pointcloud_to_image` . But when I run image_view it crashes with this error: > Using transport "raw" OpenCV Error: Bad argument (Unknown array type) in cvarrToMat, file /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/matrix.cpp, line 698 terminate called after throwing an instance of 'cv::Exception' what(): /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/matrix.cpp:698: error: (-5) Unknown array type in function cvarrToMat If I echo the image topic I can see the data, the header is: header: seq: 1934 stamp: secs: 0 nsecs: 0 frame_id: '' height: 1 width: 289946 encoding: bgr8 is_bigendian: 0 step: 869838 What is the problem with this data?

Viewing all articles
Browse latest Browse all 171

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>