DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

Data Sensor Sample

Description

The Data Sensor sample reads file/socket data and prints the timestamp and size of the received packet.

Running the Sample

The sample requires the driver and parameters of the data sensor. It accepts the following arguments:

./sample_datasensor --driver=[data.virtual|data.socket]
                    --params=[comma/separated/key/value/pairs]

Where:

--driver=[data.virtual|data.socket]
    Allows to specify which data sensor driver to use.
    Default value: data.virtual

--params=[comma/separated/key/value/pairs]
    Different parameters are available for each data sensor driver.
    Default value: file=path/to/data/samples/sensors/data/data_packet.bin
Note
For a full list of key/value pairs that can be passed to –params see Sensor Enumeration Sample .

Output

For every valid data sensor packet, the sample prints to the console data such as:

[1588118153011907] received frame of size: 6
[1588118154913607] received frame of size: 6
[1588118156872613] received frame of size: 6
[1588118158846329] received frame of size: 6
[1588118163976672] received frame of size: 6