I am connecting a VLP16 LiDAR with Matlab through ROS. The LiDAR is a node in the network, and the lidar data is obtained in MATLAB by subscribing to that node.
I'm using a Simulink model with the Subscribe and Read Point Cloud blocks. The data from the RPC block is sent to a MATLAB function block where I'm visualizing the data using the "reshape" and "plot3" commands.Unfortunately, I seem to be able to only visualize the LiDAR sensor data in ROS in real time as segments instead of the entire cloud. Therefore, I have the following questions:
– Is this an appropriate way to interface LiDAR with MATLAB using ROS?
– If so, is it expected for the data to be cut off and restricted to 2D as I currently observe?
Best Answer