1 # Copyright (c) 2019-2020 NVIDIA CORPORATION. All rights reserved.
3 @page lidar_usecase2 Decode Raw Data
5 #### Decode lidar packet from raw data
8 dwSAL_initialize(&sal, sdk);
10 dwSensorHandle_t lidarSensor = DW_NULL_HANDLE;
11 dwSensorParams params;
13 params.parameters = "ip=192.168.3.43,port=2368,device=VELO_HDL64E,scan-frequency=10.0";
14 params.protocol = "lidar.socket";
16 // use the followings if decode lidar packet from lidar recording
17 // params.parameters = "file=lidar_recording.bin";
18 // params.protocol = "lidar.virtual";
20 dwSAL_createSensor(&lidarSensor, params, sal);
22 // disable decoding before sensor starts
23 dwSensorLidar_disableDecoding(lidarSensor);
26 dwSensor_readRawData(...);
27 dwSensorLidar_processRawData(...);
29 // CODE: use the lidar packets for other tasks
31 dwSensor_returnRawData(...);
35 dwSAL_releaseSensor(&lidarSensor);
39 For more details see @ref dwx_record_sample .