Data acquisition and Visualisation of LIDAR sensor in REAL TIME

조회 수: 1 (최근 30일)
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.

채택된 답변

Thomas Satterly
Thomas Satterly 2019년 11월 12일
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.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by