Velodyne Lidar Connection from Matlab to Jetson Nano
2 views (last 30 days)
Show older comments
Hi, I am asking if this example, actually shows the live frames on Jetson Nano or not?
https://www.mathworks.com/help/coder/nvidia/ref/velodynelidar.html?s_tid=doc_ta --> I did implement it, but when I write the ./readPointCloudFrame.elf on Jetson Nano, nothing happens. and when I tried to add the pcshow function to my function itself, It gave me this error codegen -config cfg -args {sensorModel,calibrationFile,port} readPointCloudFrame
Function 'pcshow' not supported for code generation.
More information
Error in ==> readPointCloudFrame Line: 38 Column: 9
Code generation failed: View Error Report
Can someone help me in this please? Thanks in advance
0 Comments
Answers (1)
akshatsood
on 2 Dec 2023
Edited: akshatsood
on 2 Dec 2023
I understand that you are inquiring about connecting Velodyne LiDAR from MATLAB to Jetson Nano and whether the provided example can display live frames on Jetson Nano. To address this, it is important to ensure the successful display of the Point Cloud data and confirm compatibility of the function used for Code Generation. This is the reason why using "pcshow" function resulted in an error saying "Function 'pcshow' not supported for code generation.".
One way to achieve this is by leveraging the "preview" function, which allows for the live preview of point cloud data obtained from the Velodyne LiDAR sensor. While the attached example reads a Point Cloud Frame, it does not display it. By incorporating the "preview" function, you can visualize the data in real-time.
Have a look at the following references for better understanding
I hope this helps.
4 Comments
akshatsood
on 4 Dec 2023
Edited: akshatsood
on 4 Dec 2023
You are correct. Utilizing "coder.extrinsic" for standalone executables might not be the most suitable solution, as it necessitates the presence of the MATLAB engine for executing the function call.
Based on my understanding of your requirements, MATLAB offers the 'MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms,' designed to streamline the deployment of MATLAB algorithms and Simulink models to embedded NVIDIA Platforms. This support extends to receiving data from a Velodyne LiDAR® sensor using NVIDIA DRIVE® or Jetson™ hardware. For more details, please refer to the following reference.
Please go through the above reference and let me know if you require additional help
I hope this helps.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!