- Read .bag files with rosbagreader, this example shows how to read specific message from the .bag file. You would need to select the topic that correspond to the sensor_msgs/PointCloud2 message in .bag file.
- Use rosReadXYZ (and rosReadRGB if you also want the color of the point cloud) from each of those ROS messages.
- Use pointCloud to create pointCloud objects in MATLAB.
- Save those pointCloud objects to .pcd filie with pcwrite.
how to convert .bag file into .pcd in matlab (Lidar Data) ?
32 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
DAYANANDA B N
am 18 Feb. 2023
Bearbeitet: Gerald
am 11 Jul. 2024
I'm using L515 Lidar for data collection, I'm getting data .bag format from Realsense Viewer . I need to convert to .pcd format, How can I achieve that using Matlab ?
0 Kommentare
Akzeptierte Antwort
Josh Chen
am 1 Mär. 2023
Hi Dayananda,
To achieve this with MATLAB, you would need both ROS Toolbox license and Computer Vision Toolbox license. You can check whether you have these with:
>> ver
If you have both licenses, you can follow these steps and examples to read from .bag format, convert to point cloud, and save to .pcd format:
Hope this helps,
Josh
0 Kommentare
Weitere Antworten (2)
Seshu Vakamudi
am 28 Okt. 2023
Bearbeitet: Seshu Vakamudi
am 28 Okt. 2023
Hi Dayananda,
If you have Lidar Toolbox license and ROS toolbox license, you can load your ros bag into Lidar Viewer app. You can visualize point clouds with its rich set of options. This app helps you with basic analysis and measurement options. You can edit/preprocess the point cloud through this app. The export option in this app helps you to write point clouds into pcd/ply formats.
Feel free to post here if you have any difficulty.
Hope this helps,
Seshu Vakamudi
0 Kommentare
Gerald
am 11 Jul. 2024
Bearbeitet: Gerald
am 11 Jul. 2024
Point clouds may be seen because to its extensive feature set. You may get basic analysis and measuring options from this app. Using this software, you may modify and preprocess the point cloud. https://in.mathworks.com/help/lidar/ug/get-started-lidar-viewer.html geometry dash world
0 Kommentare
Siehe auch
Kategorien
Mehr zu Specialized Messages finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!