Apart from cameras, AirGen currently supports the following sensors. Each sensor is associated with a integer enum specifying its sensor type.Documentation Index
Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
Use this file to discover all available pages before exploring further.
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 robot. 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 robot. 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 theSensors 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 robot |
| Roll, Pitch, Yaw | Orientation of the LiDAR relative to the robot |
| 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 robot, the point cloud data can be accessed as follows, and optionally visualized through Rerun.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 theSensors section of the configuration tab (accessible through the custom session panel). By default, the distance sensor points to the front of the robot. 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 robot |
| Roll, Pitch, Yaw | Orientation of the sensor relative to the robot |
Accessing Distance Data
The distance sensor can be accessed through thegetDistanceData method.