Thursday, July 4, 2013

Dynamic Constraints in AD*

Since I haven't posted recently, here's a quick post about dynamic constraints and AD* replanning.

When a constraint moves, it affects a set of states in the navigation graph. We subsequently tell the planner that its previous knowledge about those states is outdated, causing it to try to replan based on new costs.

Notably, however, with a constantly moving constraint, the planner is not yet fast enough to keep up smoothly--while a constraint is moving through the searched area, if the max-time-per-replan is too low, the plan gets broken and the agent stops and waits for it to be repaired. This is illustrated below:

The initial plan, before it is invalidated by dynamic constraints.
With 100 ms per update to update the plan, the planner keeps up very nicely, immediately switching the plan from one side of the constraint to the other. This slows down the simulation quite a bit.
With just 10 ms per update, the plan becomes broken as the dynamic constraint moves across the searched area. However, it does not slow down the simulation at all.

No comments:

Post a Comment