1 # Copyright (c) 2020 NVIDIA CORPORATION. All rights reserved.
3 @page dwx_time_sensor_sample Time Sensor Sample
6 @section dwx_time_sensor_sample_description Description
8 The Time Sensor sample performs time synchronization with Lidar packet timestamps. The sample initializes multiple virtual Lidar sensors with different timestamp options in order to compare host, time synchronized, and raw sensor timestamps.
10 @section dwx_time_sensor_sample_running Running the Sample
12 The sample requires the driver and parameters of the Time and Lidar sensors. It accepts the following arguments:
14 ./sample_timesensor --time-params=[comma/separated/key/value/pairs]
15 --lidar-params=[comma/separated/key/value/pairs]
19 --time-params=[comma/separated/key/value/pairs]
20 Different parameters are available for each Time driver.
21 Default value: file=path/to/data/samples/sensors/time/time.bin
23 --lidar-params=[comma/separated/key/value/pairs]
24 Different parameters are available for each Time driver.
25 Default value: file=path/to/data/samples/sensors/time/lidar_hdl32e.bin
27 @note For a full list of key/value pairs that can be passed to --time-params or --lidar-params see @ref dwx_sensor_enum_sample .
29 @note For more information about timestamp options see @ref sensors_usecase4 .
31 @section dwx_time_sensor_sample_output Output
33 For every valid Lidar packet, the sample prints to the console data such as:
36 [Lidar] timestamp synced: 1499155033600203 | original: 1499155033600797 | raw: 1499155205168587
37 [Lidar] timestamp synced: 1499155033600756 | original: 1499155033601349 | raw: 1499155205169140
38 [Lidar] timestamp synced: 1499155033601309 | original: 1499155033601902 | raw: 1499155205169693
39 [Lidar] timestamp synced: 1499155033601862 | original: 1499155033602454 | raw: 1499155205170246
40 [Lidar] timestamp synced: 1499155033602415 | original: 1499155033603010 | raw: 1499155205170799
41 [Lidar] timestamp synced: 1499155033602968 | original: 1499155033603562 | raw: 1499155205171352
42 [Lidar] timestamp synced: 1499155033603521 | original: 1499155033604113 | raw: 1499155205171905
43 [Lidar] timestamp synced: 1499155033604074 | original: 1499155033604669 | raw: 1499155205172458
44 [Lidar] timestamp synced: 1499155033604627 | original: 1499155033605218 | raw: 1499155205173011