How to write helper functions in Lidar 3-D object detections

3 views (last 30 days)
Can anyone help me with the getting these helper functions in matlab, cropFrontViewFromLidarData helper function, saveptCldToPCD helper function, generateGTDataForAugmentation helper function, groundTruthDataAugmentation helper function,
  4 Comments
Ramya Sivanandham
Ramya Sivanandham on 23 Sep 2021
Thank you @Shahana Bano. I have tried this function. But im getting some parse error. If possible, could you help me to solve this issue?
rror using matlab.io.datastore.FileDatastore/read (line 29)
Error using ReadFcn @(x)pcread(x) for file:
C:\ .....\Lidar_Dataset\Pandaset\Lidar\0472.pcd
Error using visionPcdRead
Internal file parsing error. Please see the documentation for more details.
Error in pcread (line 99)
properties = visionPcdRead(filename,requiredProperties,optionalProperties);
Error in main_Lidar>@(x)pcread(x) (line 33)
lidarData = fileDatastore(path,'ReadFcn',@(x) pcread(x));
Error in cropFrontViewFromLidarData (line 17)
ptCloud = read(lidarData);
Error in main_Lidar (line 83)
[croppedPointCloudObj,processedLabels] = cropFrontViewFromLidarData(lidarData,boxLabels,gridParams);
29 [data, info] = matlab.io.datastore.FileBasedDatastore.errorHandlerRoutine(fds,e);
473 throwAsCaller(ME);
K>>
Ramya Sivanandham
Ramya Sivanandham on 23 Sep 2021
Though, that particular file is available in that path, this error still exists...

Sign in to comment.

Accepted Answer

Mahesh Taparia
Mahesh Taparia on 29 Mar 2021
Edited: Mahesh Taparia on 30 Mar 2021
Hi
The helper functions are shipped with the example. You can check the helper functions in the example folder by using command mentioned in that particular example. In your case, you are referring to this pointPillars example, whose command is present at the right side of the documentation (as View MATLAB Command), which is given below:
openExample('deeplearning_shared/Lidar3DObjectDetectionUsingPointPillarsExample')
Run this command, it will redirect to respective folder where all the associated functions are present.
Hope it will help!

More Answers (0)

Community Treasure Hunt

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

Start Hunting!