Video time! Here are some new videos of testing the planner. The last one is AD*, which is tested in both static and dynamic situations. (I forgot to show it in the video, but moving the start point also works.)
I'm still having some problems with the performance of AD* (even in static cases), as it is much, much slower than A* and ARA*. I'll be investigating that a bit, but soon (probably today) I should be able to start integrating this work with my project.
Thursday, August 8, 2013
Multiplier Field Path Integration
A while ago I mentioned that I was approximating the integral of a transition in a multiplier field with the value of the multiplier field at the midpoint. I decided to finally change that, so I wrote a quick fixed step midpoint integration:
protected float Integrate(Domain<TState> domain, Transition<TState> tr)
{
const int samples = 4;
var p1 = tr.From.Position;
var p2 = tr.To.Position;
var dp = p2 - p1;
float sum = 0;
for (float s = 0.5f; s < samples; s += 1) {
var t = s / samples;
var sample = p1 + t * dp;
sum += Math.Max(1f, Multiplier(sample));
}
var cost = domain.ComputeCost(tr.From.Position, tr.To.Position);
return cost * sum / samples;
}
More shortly.
Thursday, August 1, 2013
AD*: It Kinda Works
I've been working on the implementation of AD*. This tests only its static capabilities. It doesn't quite work the way I want it to, yet (e.g. it deflates to 1.5, then immediately to 1.0 and completes at 1.0 with a broken published plan--this is because the loop-end condition is occurring twice instead of once.)
Subscribe to:
Posts (Atom)