Sensors
Apart from cameras, AirGen currently supports the following sensors. Each sensor is associated with a integer enum specifying its sensor type.
Barometer
AirGen has a barometer as a default sensor for robots. The barometer primarily reports altitude and atmospheric pressure.
GPS
AirGen contains support for a GPS sensor that returns the current geo location of the vehicle. The GPS sensor is enabled by default, but can be disabled through the Sensors tab in the custom session configuration panel
The GPS data is available through the getGpsData() method.
IMU
AirGen contains support for Inertial Measurement Units (IMUs). Data captured from the IMU can be used to calculate the orientation of the vehicle. This is done using a combination of the accelerometer, gyroscope and magnetometer data.
The IMU data can be accessed using the getImuData method. This method returns an ImuData object which contains raw angular velocities and linear accelerations, as well as the orientation of the vehicle.
Magnetometer
AirGen has a magnetometer as a default sensor for robots. The magnetometer primarily reports magnetic field measurements on all three (X, Y, Z) axes.
LiDAR
AirGen contains support for LiDAR sensors, which capture 3D point clouds.
LiDAR Configuration
The configuration for the LiDAR sensor can be set up in the Sensors
section of the configuration tab (accessible through the custom session panel). The following parameters are available:
Parameter | Description |
---|---|
NumberOfChannels | Number of lasers arranged vertically |
X, Y, Z | Position of the LiDAR relative to the vehicle |
Roll, Pitch, Yaw | Orientation of the LiDAR relative to the vehicle |
VerticalFOVUpper | Topmost orientation in degrees |
VerticalFOVLower | Bottommost orientation in degrees |
HorizontalFOVStart | Leftmost orientation in degrees |
HorizontalFOVEnd | Rightmost orientation in degrees |
Accessing LiDAR Data
Assuming a LiDAR has been set up for a vehicle, the point cloud data can be accessed as follows, and optionally visualized through Rerun.
The structure of the output of client.getLidarData() can be seen at airgen.types.LidarData()
.
Distance Sensor
This is a simple distance sensor that emulates an ultrasonic sensor to measure the distance to an object.
Distance Sensor Configuration
The configuration for the distance sensor can be set up in the Sensors
section of the configuration tab (accessible through the custom session panel). By default, the distance sensor points to the front of the vehicle. The following parameters are available:
Parameter | Description |
---|---|
MinDistance | Minimum distance the sensor can capture |
MaxDistance | Maximum distance the sensor can capture |
X, Y, Z | Position of the sensor relative to the vehicle |
Roll, Pitch, Yaw | Orientation of the sensor relative to the vehicle |
Accessing Distance Data
The distance sensor can be accessed through the getDistanceData
method.
Was this page helpful?