The Sensor example application demonstrates how to use the Sensor library to acquire sensor data, record it, publish and subscribe sensor interim data, and display debug information about the data on a console connection.
When you run the application, you require sensors configured in the sensor configuration file or data units configured in the data configuration file. This can include live sensor, such as a lidar or radar, or a prerecorded data file (file data). For information about connecting and configuring sensors, see the Connect cameras and sensors and Configure sensors and cameras on the reference image in this chapter.
The steps here allow you to run the Sensor example application. If you booted the default IFS provided with the reference image, the Sensor Example is running, but you won't be able to control it. Running the application in a separate session gives you control to change it.
# 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
8) Sensor data subscriber (event mode)
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
8) Sensor data subscriber (event mode)
x) Exit the example
1
Select which sensor you want to use:
1) Unit: 1, Type: File Camera, Name: front-camera
2) Unit: 2, Type: Lidar, Name: vlp-16
3) Unit: 3, Type: Radar, Name: esr2.5
4) Unit: 4, Type: Lidar, Name: vu8
2
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
8) Sensor data subscriber (event mode)
x) Exit the example
2
Select which sensor you want to use:
1) Unit: 1, Type: File Camera, Name: front-camera
2) Unit: 2, Type: Lidar, Name: vlp-16
3) Unit: 3, Type: Radar, Name: esr2.5
4) Unit: 4, Type: Lidar, Name: vu8
2
Recording to /accounts/1000/shared/camera/SENSOR_20170609_165800.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
8) Sensor data subscriber (event mode)
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
8) Sensor data subscriber (event mode)
x) Exit the example
6
Select which sensor you want to use:
1) Unit: 1, Type: File Camera, Name: front-camera
2) Unit: 2, Type: Lidar, Name: vlp-16
3) Unit: 3, Type: Radar, Name: esr2.5
4) Unit: 4, Type: Lidar, Name: vu8
4
Sensor position: (2300.0, 0.0, 800.0), yaw: 0.0, pitch 0.0, roll 180.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
8) Sensor data subscriber (event mode)
x) Exit the example
On your host computer, the source code is provided for Sensor example application as part of a ZIP file. You can build the source and deploy the binary on to your target.