Skip to content

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#

The LiDAR model for one beam: seven sub-rays in the beam divergence find the surface hits, foliage lets the ray continue, a solid stops it, and the hits become contributions, echoes, a signal, a detection, a selected return and an output point. ONE BEAM LiDAR lens centre Foliage hit the ray continues 0.25 m behind the hit, transmission τ for each layer Solid hit the ray stops incidence angle θ 7 sub-rays in the beam divergence β centre ray, weight 0.25 6 rays on a hexagon at 0.35 β, weight 0.125 each range R FROM THE HITS TO THE POINT 1. Surface hits for each sub-ray, in range order, 4 hits maximum 2. Contributions P = w T² (1 − τ) ρ a T: foliage in front of the hit 3. Echoes merge within 0.75 m: sum of P, power-weighted range 4. Signal S = S10 (ρ/0.1) (R10/R)² × overlap, stretch, weather 5. Detection S' = S + √(S + B) n return if S' ≥ threshold 6. Range noise floor σ0 and a term that increases as 1/SNR 7. Return selection strongest, first, last, dual or triple mode 8. Output point x y z, reflectivity, signal, intensity, ring, column, class
The sub-rays of one beam find the surface hits. The hits become contributions, echoes, a detection and a return. Open the diagram

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:

  1. It turns the hits into contributions: weight x two-way transmission x backscatter.
  2. It groups the contributions into echoes by range.
  3. It detects each echo against a shot-noise threshold.
  4. It adds range noise.
  5. It applies the return mode: strongest, first, last, dual_strongest_last, dual_first_last or triple_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#

The camera pipeline: the scene capture renders a wide pinhole image, the GPU readback copies it to the CPU, the camera model applies the lens, the rolling shutter and the image sensor, and the result goes to a PNG file, to the sensor stream and to the HUD. RENDER, GAME THREAD AND GPU Scene capture pinhole render, wider than the output FinalColorLDR, 8-bit sRGB Warm-up and sample renders N − 1 renders before the due time, then the sample render GPU readback ring of 3 readback objects, copy to the CPU without a stall Camera model thread pool, for each output pixel render pixels and camera motion 1. Undistorted ray Newton inverse of Brown-Conrady, one table for all frames 2. Chromatic aberration red ray × (1 + c), blue ray × (1 − c) 3. Rolling shutter row time, then rotation and translation of the ray 4. Projection and sample pinhole projection into the render, bilinear sample in linear light 5. Vignetting gain from the radius, poly or cos4 6. Bayer site and electrons one colour for each pixel, PRNU, shot, dark and read noise 7. ADC black level, round and clip, 12 bits 8. Demosaic Malvar-He-Cutler 5 × 5 filters or bilinear 9. sRGB encode 8 bits for each channel, image of the output size PNG file and camera row camera/front_<time>.png Sensor stream frame camera frame, bgr8 HUD view half resolution
The scene capture, the GPU readback, the camera model and the outputs. Open the diagram

Unreal renders an ideal pinhole image that is a little wider than the output. FAcresCameraModel::Process then makes each output pixel with this chain:

  1. The distorted pixel gives the undistorted ray (inverse Brown-Conrady).
  2. Lateral chromatic aberration scales the ray for each color.
  3. The rolling shutter moves the ray for each row.
  4. The ray samples the color of the wider render in linear light.
  5. Vignetting, then electrons: PRNU, shot noise, dark noise and read noise.
  6. 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#

GNSS receiver model: the truth pose and the lever arm give the antenna position, the sky model and the fix state machine set the error terms, the datum chain gives the output row. POSITION PATH, ONE EPOCH AT gnss.hz (10 HZ) Truth pose chassis p and q physics step, 120 Hz Lever arm gnss.antenna_flu_m antenna position Add error Pos = Enu + Err ENU, metres Datum chain Geodetic() WGS84 or NAD83 gnss.jsonl row and GGA delay_s 0.05 s ERROR TERMS, EACH ENU AXIS Gm Gauss-Markov state U 30 s to 300 s Wh white noise new value each epoch Mp multipath state V 8 s Err, sigma SKY MODEL AND FIX STATE Constellation Sats 78 satellites 3 systems Sky obstruction Obstacles boxes, cylinders, tree crowns DOP and multipath Dop() HDOP, VDOP, PDOP, multipath index Fix state machine Fix no_fix, single, dgps, rtk_float, rtk_fixed Corrections CorrectionAge() 1 s interval, outages antenna position DOP ratio, index state parameters fix type, satellite counts RngGnss (PCG32, seed, sequence 1) gives 11 values for each epoch: 9 Gaussian values for the error terms, 1 uniform value for the cycle slip and 1 Gaussian value for the time to fix.
The truth pose, the lever arm, the error terms and the datum chain give the output row. Open the diagram

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 $GNGGA sentence.

-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.