#define COST_H
#include <cmath>
+#include "reeds_shepp.h"
#include "rrtnode.h"
float co1(RRTNode *init, RRTNode *goal)
return pow(pow(dx, 2) + pow(dy, 2), 0.5);
}
+float co2(RRTNode *init, RRTNode *goal)
+{
+ double q0[] = {init->x(), init->y(), init->h()};
+ double q1[] = {goal->x(), goal->y(), goal->h()};
+ ReedsSheppStateSpace rsss(10.82); // TODO const param
+ return static_cast<float>(rsss.distance(q0, q1));
+}
+
#endif