How to export PointCloud2 Data from a bagfile with a timestamp?

Hello, I would like to export PointCloud2 Data from a ROS bagfile. Is there any possibility to save this data in a Matlab environment like in a timeseries object?
It would also be nice to have only XYZ coordinates with timestamps so you can can access and replay them without the Robotics System Toolbox .
Thanks!

Answers (1)

Reading PointCloud2 messages from rosbag is one of the capabilities of Robotics System Toolbox, so you'll need to introduce the toolbox. https://mathworks.com/help/robotics/ref/robotics.pointcloud2.html

Categories

Asked:

JR
on 6 Oct 2015

Edited:

on 2 May 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!