| Updated: October 28, 2024 |
The Sensor example application demonstrates how to use the Sensor library to retrieve sensor data, record it, and show it on the screen.
The application requires that you configure sensors in the sensor configuration file. These can include live sensors, such as lidar or radar, or prerecorded data files (file data). For information about connecting and configuring sensors, see Connect cameras and sensors and Configure cameras and sensors on the reference image in this chapter.
# slay adas_exampleThe application should stop running and you should see a blank display.
# sensor_example
Select which example you want to run:
1) Sensor stream
2) Sensor recorder
3) Sensor data publisher
4) Sensor data subscriber
5) Sensor query
6) Sensor data query
x) Exit the example
# sensor_example
Select which example you want to run:
1) Sensor stream
2) Sensor recorder
3) Sensor data publisher
4) Sensor data subscriber streaming
5) Sensor data subscriber recording
6) Sensor query
7) Sensor data query
x) Exit the example
1
Select which sensor you want to use:
1) Unit: 1, Type: Sensor Camera, Name: front
1
Select which example you want to run:
1) Sensor stream
2) Sensor recorder
3) Sensor data publisher
4) Sensor data subscriber streaming
5) Sensor data subscriber recording
6) Sensor query
7) Sensor data query
x) Exit the example
2
Select which sensor you want to use:
1) Unit: 1, Type: Sensor Camera, Name: front
1
Recording to /accounts/1000/shared/sensor/SENSOR_19691231_191625_.raw
Select which example you want to run:
1) Sensor stream
2) Sensor recorder
3) Sensor data publisher
4) Sensor data subscriber streaming
5) Sensor data subscriber recording
6) Sensor query
7) Sensor data query
x) Exit the example
#
# sensor_example
Select which example you want to run:
1) Sensor stream
2) Sensor recorder
3) Sensor data publisher
4) Sensor data subscriber streaming
5) Sensor data subscriber recording
6) Sensor query
7) Sensor data query
x) Exit the example
6
Select which sensor you want to use:
1) Unit: 1, Type: Sensor Camera, Name: front
1
Sensor position: (0.0, 0.0, 0.0), yaw: 0.0, pitch 0.0, roll 0.0
Select which example you want to run:
1) Sensor stream
2) Sensor recorder
3) Sensor data publisher
4) Sensor data subscriber streaming
5) Sensor data subscriber recording
6) Sensor query
7) Sensor data query
x) Exit the example
#
On your host computer, the source code is provided for the Sensor example application. You can build the source code and deploy the resulting binary onto your target.