Skip to content

Add opt-in yielding obstacles to the MPPI dynamic-obstacle critic - #332

Merged
rsasaki0109 merged 1 commit into
masterfrom
feature/yield-aware-prediction
Nov 23, 2026
Merged

rsasaki0109 merged 1 commit into
masterfrom
feature/yield-aware-prediction

Conversation

@rsasaki0109

Copy link
Copy Markdown
Owner

Summary

  • New MppiParams::dynamic_obstacle_yield_distance (m, default −1 = off), also in the Python binding.
    • For an obstacle that approaches the robot, the constant-velocity prediction and its uncertainty growth stop where the obstacle first comes within this distance of the robot's disc at the start pose.
    • Obstacles that move away or pass by are unchanged.
  • tests/mppi_dynamic_obstacle_smoke.cu checks three things:
    • an oncoming pedestrian at close range makes every rollout collide without yielding, and leaves valid rollouts with it;
    • the robot does not drive into the stopped pedestrian;
    • receding obstacles give bit-identical plans with yielding on or off.
  • docs/cudanav_dynamic_obstacles.md and plan.md record the results, including two fixes that were tried and not adopted.

Results (72-run layout sweep, deterministic)

Setting Goals Robot-caused collisions Stalled time
Default 65/72 5 599 s
Yield 0.05 m 69/72 13 440 s
  • Oracle tracks: 21/24 → 23/24 goals, with 0 collisions in both.
  • The added collisions all come with delayed/noisy tracks or the scan tracker. Mostly they are full-speed forward commands into a pedestrian a few centimetres away, so yielding stays off by default.
  • Tried for those contacts and not adopted:
    • an approach-speed limit (crossing drops to 10/18 or 17/18);
    • a 1 m/s² acceleration limit (66/72 goals, 31 collisions).

The Nav2 plugin does not expose the parameter yet.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ALg7o339S7Rpi9hd751Cbt

dynamic_obstacle_yield_distance (default -1 = off) stops the
constant-velocity prediction, and its growth, of an obstacle approaching
the robot where it first comes within that distance of the robot's start
disc. Standing still or stepping aside is then collision-free, so the
robot need not back out in front of an oncoming pedestrian.

Over the 72-run layout sweep, 0.05 m gives 69/72 goals (65 by default) and
cuts stalled time from 599 s to 440 s. Collisions rise from 5 to 13, all
with noisy or scanned tracks (oracle: 23/24 with none), so it stays off.
An approach-speed limit and an acceleration limit were tried for the
contacts and were worse; both results are documented.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALg7o339S7Rpi9hd751Cbt
@rsasaki0109
rsasaki0109 merged commit bc5b423 into master Nov 23, 2026
10 checks passed
@rsasaki0109
rsasaki0109 deleted the feature/yield-aware-prediction branch November 23, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant