1 # Copyright (c) 2020 NVIDIA CORPORATION. All rights reserved.
3 @page dwx_data_sensor_sample Data Sensor Sample
5 @section dwx_data_sensor_sample_description Description
7 The Data Sensor sample reads file/socket data and prints the timestamp and size of the received packet.
9 @section dwx_data_sensor_sample_running Running the Sample
11 The sample requires the driver and parameters of the data sensor. It accepts the following arguments:
13 ./sample_datasensor --driver=[data.virtual|data.socket]
14 --params=[comma/separated/key/value/pairs]
18 --driver=[data.virtual|data.socket]
19 Allows to specify which data sensor driver to use.
20 Default value: data.virtual
22 --params=[comma/separated/key/value/pairs]
23 Different parameters are available for each data sensor driver.
24 Default value: file=path/to/data/samples/sensors/data/data_packet.bin
26 @note For a full list of key/value pairs that can be passed to --params see @ref dwx_sensor_enum_sample .
28 @section dwx_data_sensor_sample_output Output
30 For every valid data sensor packet, the sample prints to the console data such as:
33 [1588118153011907] received frame of size: 6
34 [1588118154913607] received frame of size: 6
35 [1588118156872613] received frame of size: 6
36 [1588118158846329] received frame of size: 6
37 [1588118163976672] received frame of size: 6