Repository navigation
Track moving objects from the scan and avoid them without an oracle - #322
Merged
Merged
Conversation
ScanObjectTracker (cudarobotics.navigation.tracking) finds moving objects in the LiDAR scan itself and tracks them with constant-velocity Kalman filters: - OccupancyAge counts how long each rolling-grid cell has been occupied; points whose 3x3 block holds no long-standing structure are candidates, so established walls (including returns that land in the free cell in front of the wall surface) drop out and anything new starts as an object; - candidates are clustered (0.3 m, <= 1.0 m wide), centres corrected for the near-side bias of a scan, associated greedily and confirmed only after moving 0.3 m, which rejects wall fragments that jitter in place; - every detection's points stay out of the voxel map; a still object is released to the map after 2 s (a stationary disc for MPPI until then); confirmed tracks clear their last 10 s of positions from the occupancy. CudaNavPipeline(tracker=...) runs it per frame and hands the tracks to the dynamic-obstacle path; `sim --scenario crossing --dynamic-mode tracked_scan` evaluates it with tracking metrics against the true pedestrians. MppiParams::dynamic_obstacle_overlap_allowance (default 0, unchanged behaviour) lets a rollout collide only when it gets deeper than the robot's current, capped penetration of an observed disc, with the uncertainty growth soft-only. Without it the scan-tracked robot froze in every run whenever a position error put it inside a disc; the pipeline sets 0.1 m only when it runs the tracker. 6 seeds per condition (docs/results/cudanav_dynamic_obstacles_2026-11-21): scan tracker 4/6 goals, 0 robot-caused collisions, 90.5% recall, 0.12 m position / 0.28 m/s velocity RMSE; oracle prediction 5/6. Seeds 3-5 also show that the delayed, noisy oracle condition from #320 can freeze or touch pedestrians (2 runs, 12 contacts), most likely through the retreat behaviour, which ignores predicted obstacles; documented as a limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALg7o339S7Rpi9hd751Cbt
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#320 avoided predicted pedestrians, but its tracks came from the simulator. This PR finds and tracks them in the LiDAR scan.
ScanObjectTracker(python/src/cudarobotics/navigation/tracking.py, NumPy)OccupancyAgecounts how long each rolling-grid cell has been occupied.2r/π). This halved the position RMSE, from 0.23 m to 0.10 m.Integration
CudaNavPipeline(tracker=...)gives tracks to the dynamic-obstacle path and exposesstep.tracks,track_idsanddynamic_point_count.cudarobotics-cudanav sim --scenario crossing --dynamic-mode tracked_scanuses no simulator knowledge. It reports recall, position/velocity RMSE and false tracks against the true pedestrians.Core:
MppiParams::dynamic_obstacle_overlap_allowanceResults (6 seeds per condition,
docs/results/cudanav_dynamic_obstacles_2026-11-21.md)Limits
Test plan
mppi_dynamic_obstacle_smoke(CTest):all_colliding;cudanav_costmap_gpu_smokeis unchanged.python/tests:OccupancyAgestructure and roll;tracked_scanwithout a tracker raises.tracking.py), paper artifacts, redaction, and the CudaNav contract/closed-loop/version/systems-bundle script tests all pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01ALg7o339S7Rpi9hd751Cbt