Two motion models.
An interacting multiple-model filter mixes constant velocity and constant turn-rate predictions. Gated Hungarian assignment gives detections a one-to-one association with tracks.
Point clouds · Object tracking · Maritime perception
Measure motion.
Question the centroid.
A moving vessel sees a different piece of the seawall with every scan. This pipeline turns sparse returns into clusters, tracks and obstacle evidence—and checks whether an apparent moving object is actually standing structure.
01 / Geometry under motion
A cluster centre can move even when the object does not. On a harbour wall, the visible arc changes with the vessel’s position and the LiDAR’s vertical rings.
I built and maintained the LiDAR repository within my Perception Stack. It handles scan alignment, geometric detection, multi-object tracking, collision-risk outputs and occupancy grids. Its native ROS 2 interfaces also support standalone operation.
The retained bag is a useful stress case: about 400 points per scan, with most returns on the starboard seawall 20–60 metres away. The engineering challenge is to preserve that sparse evidence without turning changing visibility into false velocity.
02 / From scan to evidence
The scan, IMU and odometry must describe the same time. Deskew compensates motion within a scan; roll and pitch are removed before geometry is evaluated. Clusters and obstacle points enter the world frame only when aligned odometry is available.
Deskew → gravity alignment → sensor-frame azimuth and hull gates
Range-aware filtering, ring-normalized clustering, footprint boxes and persistent-return share
Instant and temporal grids; occupied or unknown cells
Track confirmation, measured motion and standing-structure checks
Native LiDAR messages; shared-schema bridges for the fusion layer
An interacting multiple-model filter mixes constant velocity and constant turn-rate predictions. Gated Hungarian assignment gives detections a one-to-one association with tracks.
A new track needs two associated detections before publication. Lost tracks can briefly hibernate and be revived, then must be confirmed again. Wrong-frame inputs are rejected; clock rewinds and long gaps reset tracking state.
Motion starts as unknown. A fit to measured centres over four seconds needs at least six samples spanning one second. Moving state requires 0.5 m/s and a three-standard-error significance threshold; hysteresis reduces switching.
CuPy and cuML accelerate supported operations when a CUDA device is available. CPU implementations preserve the pipeline on other hosts. Backend availability is checked before taking the GPU path.
03 / Decisions that change the output
Point spacing grows with range. Outlier removal normalizes neighborhood distance by range, while DBSCAN scales vertical separation when the VLP-16’s rings are farther apart than its clustering radius. Horizontal distances stay unchanged.
A long wall or partially visible hull has a less reliable centre along its long axis. Measurement covariance grows with the cluster’s footprint, reducing the false velocity caused by a sliding visible outline.
The clusterer measures overlap with world-frame cells hit 3–6 seconds earlier. Repeated overlap identifies standing structure even when its centre slides. The rule excludes footprints longer than 8 metres because a moving ship can overlap its own earlier returns.
A point marks an occupied cell. Missing returns do not prove free water. Temporal evidence decays with elapsed sensor time, including during dropouts, and clears on a clock rewind.
Only tracks classified as moving publish velocity. Static and unknown tracks publish zero velocity; a coasting nonmoving track stays at its last measured position. Risk and prediction therefore consume the motion decision instead of raw filter drift.
04 / Inspect the implemented pipeline
The left view follows the starboard bank; the right shows the same replay from above. White points accumulate over three seconds so the thinned cloud is readable. Coloured points and boxes identify clusters and tracks, while dark cells show occupancy.
As the vessel travels through the harbour channel, white returns trace sections of the seawall. Coloured clusters appear along the bank, change shape and sometimes lose their identities. The top-down panel shows their location relative to the ego vessel and LiDAR occupancy. The scene was captured from RViz in software rendering during the October 21–22 material collection. It reprocesses the May 16, 2025 bag.
RViz’s text labels display the filter’s internal speed, including on static tracks. The published velocity and velocity arrows use the motion gate. Read the coloured track geometry and published motion evidence separately from that label.
05 / Recorded-bag regression
The supplied review reported only 5% of land-track updates as static. Two retained replays after the fixes reach 82.6% and 81.5%.
81.5–82.6% across the two retained replays
LiDAR risk entries per recorded window; the regression limit is 40
Run 1 median across 209 IDs; run 2 is 5.5 s across 206 IDs
The current proportions and track lifetimes were recomputed from the supplied recordings on October 25. The land mask comes from approximate map polygons, so this measures behavior near the bank rather than object-level classification accuracy. The earlier 5% is a reported baseline with no raw baseline recording in the supplied materials.
| Measure | Run 1 | Run 2 |
|---|---|---|
| Land updates · static / total | 8,846 / 10,714 | 8,573 / 10,520 |
| Land updates · unknown | 14.1% | 14.6% |
| Distinct published track IDs | 209 | 206 |
| Median observed track lifetime | 5.24 s | 5.55 s |
| HIGH / CRITICAL risk entries | 13 | 15 |
| Repeated observation stamps / observations | 0 / 1,289 | 1 / 1,286 |
Lifetimes run from the first to last published update for each ID inside the recording, so window boundaries can truncate them. Risk entries can repeat the same physical track. The metric windows begin around bag time 585 s; the illustrative video begins at 600 s.
06 / What remains open
The remaining 13–15 high-risk entries sit on bank tracks missed by the standing-structure rule. The 8-metre length guard protects long moving vessels, but also prevents some long shoreline clusters from being classified as structure.
Median lifetimes remain around five seconds. Sparse rings, changing visibility and fragmentation still produce short tracks. Two replays of one harbour transit cannot establish general detection recall or tracking performance across vessels, weather and sea states.
An optional OpenPCDet SECOND branch runs beside DBSCAN using the same aligned cloud. Its outputs stay on shadow topics for comparison, and it is disabled by default. The production tracker continues to consume geometric clusters; field validation and calibrated uncertainty remain prerequisites for promotion.
LiDAR contributes local geometry and obstacle evidence. The radar pipeline supplies complementary range tracks, the camera pipeline supplies visual observations, and Sensor Fusion reconciles their timestamps, uncertainty and identities.
07 / Evidence & reproducibility
The footage and retained recordings come from the October 21–22 collection using the May 16, 2025 vessel bag. This page audits the implementation and recomputes LiDAR metrics from those recordings. The reviewed LiDAR revision adds documentation and media to the captured revision; its processing code is unchanged.
Captured LiDAR source: 327a6e0. Reviewed LiDAR source: f560e7184dc7. Captured stack: fa1d765. The source review and recorded-data reanalysis are distinct from a new vessel test.
Repository development and maintenance: Jerry Chang. The implementation uses ROS 2, NumPy, SciPy, scikit-learn, CuPy and cuML; the optional learned branch uses OpenPCDet and SECOND. RViz displays the recorded sensor data and computed outputs. The motion chart is regenerated from retained regression data.
LiDAR Processing / Perception Stack