]> rtime.felk.cvut.cz Git - hubacji1/rrts.git/blobdiff - src/rrtext5.cc
Change spacing
[hubacji1/rrts.git] / src / rrtext5.cc
index b1fb544dc7c8dac7cde529cd33faecc5726ea9fc..f5ee50c85a0b7077b9eee5a0d09af21e407c5011 100644 (file)
@@ -3,15 +3,15 @@
 
 double RRTExt5::cost_build(RRTNode &f, RRTNode &t)
 {
-        double q0[] = {f.x(), f.y(), f.h()};
-        double q1[] = {t.x(), t.y(), t.h()};
-        ReedsSheppStateSpace rsss(this->bc.mtr());
-        return rsss.distance(q0, q1);
+       double q0[] = {f.x(), f.y(), f.h()};
+       double q1[] = {t.x(), t.y(), t.h()};
+       ReedsSheppStateSpace rsss(this->bc.mtr());
+       return rsss.distance(q0, q1);
 }
 
 double RRTExt5::cost_search(RRTNode &f, RRTNode &t)
 {
-        double cost = 0;
-        cost = sqrt(pow(t.y() - f.y(), 2) + pow(t.x() - f.x(), 2));
-        return cost;
+       double cost = 0;
+       cost = sqrt(pow(t.y() - f.y(), 2) + pow(t.x() - f.x(), 2));
+       return cost;
 }