]> rtime.felk.cvut.cz Git - hubacji1/psp.git/commitdiff
Remove precision workaround, fe iter limit to 100
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 9 Jan 2020 15:20:24 +0000 (16:20 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 9 Jan 2020 16:19:03 +0000 (17:19 +0100)
src/psp.cc

index 3063ff769b5145b338b9c51f8c575171a810d942..e2c6ee1585cf903bab80be200b5870ceb2aaf0f6 100644 (file)
@@ -96,7 +96,6 @@ void PSPlanner::guess_gc()
         if (this->ps().right())
                 dts = - M_PI / 2;
         if (this->ps().parallel()) {
-                dts *= 0.99; // precision workaround
                 x += (this->gc().w() / 2 + 0.01) * cos(h + dts);
                 x += (this->gc().dr() + 0.01) * cos(h);
                 y += (this->gc().w() / 2 + 0.01) * sin(h + dts);
@@ -337,7 +336,7 @@ void PSPlanner::fe_parallel()
         }
         // BFS - find entry current car `cc` and corresponding goal car `gc`
         unsigned int iter_cntr = 0;
-        while (!q.empty() && iter_cntr < 9) {
+        while (!q.empty() && iter_cntr < 100) {
                 this->cc() = BicycleCar(q.front());
                 q.pop();
                 while (