← Perception StackMulti-sensor perception · Recorded vessel data

Track association · Temporal occupancy · Data contracts

Sensor
Fusion.

Combine the evidence.
Keep its provenance.

LiDAR, radar and cameras see the same harbour with different geometry, uncertainty and timing. This ROS 2 layer turns their outputs into shared tracks and observations while retaining which sensors support each result.

01 / Each source, then the combined resultRecorded vessel bag · Anping harbour

01 / Several measurements of one scene

Fusion starts with
what a message means.

A camera waterline point and a radar cluster centre are different measurements. A recent arrival can still describe an older scene. A healthy sensor may report no objects.

I built and maintain this repository and the four repositories around it. The fusion layer consumes the native outputs of LiDAR, radar and camera processing, then publishes tracks, occupancy, predicted footprints, collision risk and a structured observation for downstream consumers.

The work combines estimation with interface design: source identities, timestamps, reference frames and health remain explicit through the pipeline. Any available sensor subset can produce an output, with missing expected sources reflected in its quality state.

My role
Repository development, maintenance & integration
Core tools
ROS 2 · Python · NumPy / SciPy
Inputs
Sensor tracks, occupancy grids & odometry
Evidence
Two replays of one 130-second vessel-bag window

02 / Align before combining

A shared frame.
A meaningful time.

Semantic fusionStamped outputs in metric odom
Native sensor pipelinesLiDAR + radar + camera

Tracks, per-source uncertainty, motion state, occupancy and health

Track fusionIdentity and state
Accept → align → associate → update

Frame, receipt age and stamp skew checked per source

Occupancy fusionSpatial evidence
Resample → combine → decay

One fixed lattice; each source stamp integrated once

Consumer contractTracks + risk + grids + aligned ego state

Observation with OK / PARTIAL / STALE quality and source availability

Risk and prediction use odometry at the track batch's stamp. Compatibility bridges translate native outputs into the shared schema; the bridges perform no fusion.

Radar arrives roughly once a second; camera detections and LiDAR update more often. Each new source message updates the tracker once and is projected to the newest accepted stamp. Separate skew and timeout limits account for these rates. Reusing a cached source never counts as another independent measurement.

Availability

Empty and absent mean different things.

Fresh, accepted and degraded source masks accompany the track array. A sensor can be healthy with zero observations. If an expected sensor disappears, the final observation becomes PARTIAL rather than silently appearing complete.

Lifecycle

Coast within a defined window.

Tracks remember the last contribution of each source. Radar has a longer coast window to bridge its scan interval. Source masks expire with those windows; clock rewinds reset tracks instead of preserving an invalid future.

03 / Geometry before confidence

Match the object.
Respect the measurement.

A camera locates the near waterline, while LiDAR and radar locate the centre of their returns. The association code compares a camera point with the object's near edge, using its extent and line of sight. This prevents a geometrically explainable offset from creating a second identity.

01 / Position uncertainty

Keep directional noise.

Radar uses range and bearing uncertainty; bearing error grows across the line of sight with distance. Camera tracks carry a full 2 × 2 position covariance. A covariance gate supplements distance checks.

02 / Motion uncertainty

Treat unknown motion explicitly.

A static source supplies a zero-velocity measurement. An unknown source supplies a much weaker zero-velocity prior. Once LiDAR or radar establishes motion, camera updates contribute position without overriding velocity derived from stronger evidence.

03 / Filter updates

Use each source's own noise.

Associated members update the constant-velocity Kalman filter sequentially. The Joseph covariance update supports numerical stability. A source's identity can preserve the fused ID when its segmentation shifts.

04 / Provenance

Keep the supporting identities.

Each source track backs at most one fused track. Source masks and per-source IDs identify its support. LiDAR determines extent when available; camera, radar and LiDAR attributes retain their different meanings.

02 / Observe the individual sources and fused identitiesBag 630–660 s · 1× playback · silent
Read a description of the replay

Both heading-up panels follow the same vessel through the harbour. The left shows separate sensor tracks. On the right, fused-track colors indicate source support: red for LiDAR, green for radar, blue for camera, teal for radar plus camera, and yellow for LiDAR plus radar. These fused colors encode provenance, not motion. Amber radar returns, white LiDAR points and dark occupancy cells provide spatial context. The camera path uses cached YOLO11n detections on a virtual pinhole view of the recorded panorama.

04 / Memory also needs a forgetting rule

Remember the quay.
Let the boat's trail fade.

Instantaneous sensor grids are resampled onto a world-fixed lattice and combined as weighted log-odds evidence. The temporal layer integrates each source stamp once and decays by elapsed sensor time. Feeding upstream temporal grids back into that accumulation would repeatedly reinforce old evidence.

With occupied evidence and no reliable free-space clearing, a moving boat leaves a trail. Evidence inside a moving track's footprint gets a separate decay rule: after the object leaves, that evidence fades faster. Existing static evidence stays static so a sliding shoreline cluster cannot erase the quay.

03 / Instantaneous evidence and temporal memoryBag 630–660 s · 1× playback · silent
Read a description of the occupancy replay

The left panel shows fused occupancy at the current update. The right accumulates evidence through time. Both display source-colored fused tracks and the white ego-vessel arrow. The temporal grid holds more of the bank outline and also retains a visible trail behind moving targets. The clip is a direct RViz recording, not a simulated visualization of the algorithm.

The residual matters

The two retained runs still measure a median yacht trail of 8.6–9.1 m, with the 90th percentile near 19.2 m. Faster decay reduces persistence, but the result still contains substantial old occupied evidence.

05 / Diagnose what survives the fixes

One yacht.
Several checks on the output.

The regression checks identity near the AIS yacht, motion on approximate land polygons, risk entries, occupancy trails and observation quality. Two independent replays of the same 130-second window expose some scheduling variation while keeping the scene fixed.

One track near the yacht94%

Eligible fused batches; 93.95–94.03% across the two runs

HIGH / CRITICAL entries70–78

Repeated output entries across the recorded window

Median yacht trail8.6–9.1m

Occupied evidence measured behind the AIS vessel

04 / Most remaining alarm entries have camera-only support

The earlier review recorded 505 fused HIGH or CRITICAL entries. The current reports contain 70 and 78; 66 and 67 come from camera-only tracks. That attribution provides a concrete place to investigate waterline range and motion estimates. The counts are repeated risk-output entries, not unique incidents or a labelled false-positive rate.

Same scenario · 585–715 s bag window · supplied October 2026 recordings
MeasurementRun 1Run 2
Eligible AIS comparison batches1,1731,174
Exactly one track within 15 m94.03%93.95%
Two or more tracks within 15 m5.97%6.05%
Median / p90 yacht trail9.06 / 19.11 m8.58 / 19.24 m
PARTIAL fused observations1.63%2.20%
Repeated fused observation stamps01

AIS positions are interpolated between sparse reports; the 15 m radius is a regression association rule. The trail metric inspects occupied evidence in the target's lane 3–40 m behind its stern. The same route was used to tune and check these behaviors.

06 / The information the system still lacks

More sensors.
Still an estimate.

01

Correlated estimates need further study.

The filter uses each source's covariance, but does not explicitly maintain cross-correlations between upstream trackers or shared odometry errors. A numerically stable covariance update does not prove that uncertainty is calibrated.

02

Source quality still limits the fused result.

Camera-only tracks account for most remaining alarm entries. The camera replay uses cached YOLO11n boxes as a pipeline test model; this evidence does not validate a trained maritime detector or all-object detection accuracy.

03

Risk is a kinematic heuristic.

The shared assessor uses constant-velocity point-target closest approach, distance and closing speed. It does not propagate the full state uncertainty into collision probability or implement marine right-of-way rules.

A useful next evaluation would hold out new routes and encounters, include measured target trajectories, and test sensor outages explicitly. That would separate improvements in this regression from performance on unfamiliar scenes.

07 / Keep provenance all the way to the page

Inspect the source.
Follow the measurement.

Media and metrics come from October 21–22, 2026 replays of the May 16, 2025 vessel bag. The October 25 audit checked the source against the media revision: later fusion commits add README material and figures, with no runtime changes. Historical baseline counts come from retained review summaries.

Credits

Repository development, maintenance and stack integration: Jerry Chang. ROS 2 provides middleware and message infrastructure; NumPy and SciPy provide numerical routines. The retained camera replay uses Ultralytics YOLO11n detections. All screenshots and footage show outputs of the implemented system in RViz.

Sensor Fusion / Perception Stack

Follow each source.
Understand the whole.

Explore Perception Stack Inside Radar Processing