Sensors#
This page gives the sensor models of the game and of ACRES Core: LiDAR, camera, GNSS, IMU, INS and CAN.
Sources: Game/Source/Acres/AcresSensors.h (the recorder), AcresLidarModel.h (LiDAR radiometry and returns), AcresLidarGpu.h (GPU ray tracing), AcresCameraModel.h (lens and image sensor), AcresGnssModel.h (receiver), Game/Core/Source/AcresCoreLidar.h (the LiDAR of ACRES Core). Parameters: Game/Content/Simulation/sensors.json and, for the Polaris, sensors_polaris.json on top of it.
Clock and Threads#
The physics step of 120 Hz is the clock of all sensors. The truth, the actions, the IMU, the GNSS and the CAN rows come from the physics thread. The LiDAR scans and the camera captures need the renderer, so they run on the game thread at a pose that the physics thread stamped. One writer thread writes each text row into <root>/episode-NNN/<stream>.jsonl.
World quantities are in ENU. Sensor quantities are in the body frame FLU. The units are SI.
The Two Sensor Suites#
| Sensor | Polaris (sensors_polaris.json, profile_validated: true) |
Maxxum (sensors.json, profile_validated: false) |
|---|---|---|
| LiDAR | RoboSense Helios, 32 rings x 1800 columns at 10 Hz, strongest return | 8 rings x 180 columns at 10 Hz, range 60 m |
| Camera | 896 x 512 px at 10 Hz, horizontal field of view 73.54° | 896 x 512 px at 10 Hz, horizontal field of view 90° |
| INS | 100 Hz | On only with the sensor stream, at base_footprint |
| GNSS | From sensors.json |
10 Hz |
| IMU | From sensors.json |
120 Hz |
| CAN | Off | 20 Hz |
The values of sensors.json are placeholders for a sensor pod on the cab roof. None is a measured installation (the key provenance of that file).
LiDAR#
A beam is a small bundle of sub-rays in its divergence footprint. Each sub-ray reports the surfaces that it met, in range order. Foliage lets a part of the beam through. Solids stop the ray. ProcessBeam then does these steps:
- It turns the hits into contributions: weight x two-way transmission x backscatter.
- It groups the contributions into echoes by range.
- It detects each echo against a shot-noise threshold.
- It adds range noise.
- It applies the return mode:
strongest,first,last,dual_strongest_last,dual_first_lastortriple_first_strongest_last.
The geometry comes from the GPU ray tracing (AcresLidarGpu.cpp) or from collision traces (the CPU LiDAR, -SensorCpuLidar). The game calls ProcessBeam once for each beam, in ring-major order. Thus the random draws are reproducible.
Values of the Helios in sensors_polaris.json, block lidar:
| Key | Value |
|---|---|
columns, hz |
1800, 10 Hz |
range_m, min_range_m |
161.3 m, 0.2 m |
beam_divergence_mrad, beam_divergence_v_mrad |
1.6 mrad, 6.9 mrad |
pulse_length_m |
1.0 m |
std_m |
0.0022 m |
delay_s |
0.012 s |
return_mode |
strongest |
The beam table of the 32 rings comes from recorded scans of the vehicle. The vehicle body seen by its own LiDAR is a measured table (polaris_lidar_self.f32).
The GPU LiDAR sees an object only while the object is in the ray-tracing scene of the main view. Game/Config/DefaultEngine.ini sets r.RayTracing.Culling.Angle=0.35. Thus an instance with a radius of 1.05 m or more stays in the scene to 171.9 m from the view. This is the range of the Polaris LiDAR (161.3 m) plus the distance of the chase camera. Beyond the real patches of the regional crops (110 m, -RegionCropRealEnd=), the GPU LiDAR takes the crop returns from box proxies of the CPU LiDAR. Results/Map/lidar_crop_range.json has the measured ranges.
ACRES Core traces the same beam layout against the terrain, the scene of Game/Core/Data/acre_scene.json and the boxes of the objects. It also has a planar scan of 360 beams for the shield. Batch.lidar(crops=True) adds the crops and the grass cover as cells of 0.1 m.
Camera#
Unreal renders an ideal pinhole image that is a little wider than the output. FAcresCameraModel::Process then makes each output pixel with this chain:
- The distorted pixel gives the undistorted ray (inverse Brown-Conrady).
- Lateral chromatic aberration scales the ray for each color.
- The rolling shutter moves the ray for each row.
- The ray samples the color of the wider render in linear light.
- Vignetting, then electrons: PRNU, shot noise, dark noise and read noise.
- The ADC (black level, bits), then the ISP (demosaic, sRGB encode).
The render is tone-mapped. Thus "linear" is the inverse sRGB curve of the 8-bit image, not the radiance of the scene. The settings are the blocks camera.lens, camera.rolling_shutter and camera.photometric of the sensor file. -SensorCameraIdeal gives the clean pinhole image.
GNSS#
The receiver model works in the position domain. It has no pseudoranges and no carrier phases.
- A synthetic GPS, Galileo and GLONASS constellation with circular orbits.
- Sky-view obstruction by buildings, grain bins and tree crowns, and the dilution of precision.
- An RTK fix-state machine: none, single, DGPS, RTK float, RTK fixed, with convergence and correction age.
- Errors: a first-order Gauss-Markov process, white noise and multipath. The reported sigma is the standard deviation of the modeled error.
- The datum chain NAD83(HARN) to NAD83(2011) to ITRF2014 (WGS84(G2139)) at the observation epoch, with GEOID12B heights and an NMEA
$GNGGAsentence.
-SensorGnssFrame=wgs84_g2139|nad83 selects the output frame.
INS of the Polaris#
The INS of the Polaris gives the pose at 100 Hz, as the OxTS receiver of the vehicle. The block ins of sensors_polaris.json gives a position sigma of 0.01 m with a time constant of 30 s. It also gives a white position noise of 0.003 m, a heading sigma of 0.1° and an attitude sigma of 0.03°. The bridge sim_bridge publishes it on /oxts/* and, with ncom:=true, as NCOM packets.
Profiles and Seeds#
The camera image and the GPU LiDAR change with the render state. While a camera or a LiDAR records, the game thus pins the render state to a sensor render profile. Source: Game/Source/Acres/AcresRenderTier.h.
| Profile | Use |
|---|---|
calibrated |
The render state of the validation of the Polaris camera and LiDAR. The high tier always uses it. |
reduced-6gb |
The low tier, when the calibrated profile does not fit a GPU of 6 GB. Its images are different. The label sensor_profile of each data set tells which profile made it. |
-SensorRenderProfile=calibrated or -SensorRenderProfile=reduced selects the profile.
-SensorSeed= sets the seed of the noise. -SensorNoNoise turns off all noise.
Limits#
- The GNSS error parameters of each fix state are typical values of the receiver classes. No recording calibrates them. The lever arms of the Polaris INS are estimates.
- The camera model works on the 8-bit image after tone mapping. Its noise is not physically exact in linear light.
- The rolling shutter is a warp of one render for each row.
- ACRES Core has no camera.
- The crops of the Core LiDAR are cells, with no rows and no plant shapes.