The sensor view application demonstrates how to use the Sensor library to take sensor data, record it, and show it on the screen.
When you run the application, you require sensors configured in the sensor 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 Configure 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
5) Sensor query
6) Sensor data query
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
5) Sensor query
6) Sensor data query
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
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
5) Sensor query
6) Sensor data query
x) Exit the example
5
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
5) Sensor query
6) Sensor data query
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.