Create dataSource for groundTruthLidar

조회 수: 2 (최근 30일)
Chenyu
Chenyu 2025년 7월 4일
댓글: Vidhi Agarwal 2025년 7월 8일
Hi there,
I would like to use groundTruthLidar to prepare a dataset containing the lidar point clouds and bounding boxes to the App "lidarLabeler". First, I need to create the dataSouce. However, the example at link https://uk.mathworks.com/help/lidar/ref/groundtruthlidar.html only gives using vision.labeler.loading.VelodyneLidarSource to create the dataSource. I have extracted .pcd files from a ros2 bag, so supposedly I should use lidar.labeler.loading.CustomPointCloudSource or lidar.labeler.loading.RosbagSource? If so, is there any examples?
Thank you for your time.
Kind regards,
Chenyu
  댓글 수: 1
Vidhi Agarwal
Vidhi Agarwal 2025년 7월 8일
Use lidar.labeler.loading.CustomPointCloudSource for your folder of .pcd files. RosbagSource is only for ROS1 bags, not extracted .pcd files.
fds = fileDatastore('your_pcd_folder', 'ReadFcn', @(x) pcread(x), 'FileExtensions', '.pcd');
source = lidar.labeler.loading.CustomPointCloudSource;
source.Datastore = fds;
lidarLabeler(source);
Hope this helps!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 ROS Log Files and Transformations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by