 hspace="5" src="example_02.png" alt=""> <h2 id="6">LiDAR sensor data</h2>
<p>Example plots lidar pointcloud and getting the groundtruth labels</p>
<pre class="codeinput">lidarSensorName = <span class="string">"lidar"</span>;
enableLabels = true;
[lidarPointCloud, lidarLabels, LidarTimestamp, LidarSensorPose] = airSimClient.getLidarData(lidarSensorName, enableLabels, vehicle_name);

figure;
<span class="keyword">if</span> ~isempty(lidarPointCloud)
    pcshow(lidarPointCloud, MarkerSize=50);
<span class="key