1 # Copyright (c) 2019-2020 NVIDIA CORPORATION. All rights reserved.
3 @page lidar_usecase2 Decode Raw Data
5 @note SW Release Applicability: This tutorial is applicable to modules in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
7 #### Decode lidar packet from raw data
10 dwSAL_initialize(&sal, sdk);
12 dwSensorHandle_t lidarSensor = DW_NULL_HANDLE;
13 dwSensorParams params;
15 params.parameters = "ip=192.168.3.43,port=2368,device=VELO_HDL64E,scan-frequency=10.0";
16 params.protocol = "lidar.socket";
18 // use the followings if decode lidar packet from lidar recording
19 // params.parameters = "file=lidar_recording.bin";
20 // params.protocol = "lidar.virtual";
22 dwSAL_createSensor(&lidarSensor, params, sal);
24 // disable decoding before sensor starts
25 dwSensorLidar_disableDecoding(lidarSensor);
28 dwSensor_readRawData(...);
29 dwSensorLidar_processRawData(...);
31 // CODE: use the lidar packets for other tasks
33 dwSensor_returnRawData(...);
37 dwSAL_releaseSensor(&lidarSensor);
41 For more details see @ref dwx_record_sample .