Data acquisition and Visualisation of LIDAR sensor in REAL TIME

1 vue (au cours des 30 derniers jours)
Zübeyir Cerrah
Zübeyir Cerrah le 12 Nov 2019
Commenté : Zübeyir Cerrah le 14 Nov 2019
Hello Guys :)
I have a LIDAR sensor with CANOpen Communication, which sends/has 11 beams in an angle of 88°. I already created a Simulink-Model where the distance for each beam are visible. Now I would like to create a Visualization for the LIDAR sensor, please look at the attachment.
The problem is, I don't know how to realize the live or real time Visualization. I would be thanksful for each recommendation.

Réponse acceptée

Thomas Satterly
Thomas Satterly le 12 Nov 2019
Matlab isn't very good at graphics with high update rates, but it is doable. I'd suggest looking at the line and scatter objects closely, specifically the XData, YData, and ZData properties. You can continuously update properties in line or scatter (or any graphics primitive) object and make a call to drawnow to re-draw the plot, which is about the fastest method for animating data. You should also minimize the number of graphics objects that are in the plot, i.e., a single line object with 10,000 points is much more graphically efficient than 100 lines with 100 points each. A scatter type might be more helpful in your case because you can also set the color per data point, as is seen in your example images.

Plus de réponses (0)

Catégories

En savoir plus sur Labeling, Segmentation, and Detection dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by