]> rtime.felk.cvut.cz Git - hubacji1/iamcar.git/commitdiff
Use first slot node as rotate center
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Mon, 4 Mar 2019 16:49:06 +0000 (17:49 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Fri, 29 Mar 2019 15:33:38 +0000 (16:33 +0100)
decision_control/slotplanner.cc
lpar.json

index 9d4790a831833ee619f0d5fc52e2e74728b2e464..dff0fe446349e5e9623b6b3e95672f0ce0d6261e 100644 (file)
@@ -151,11 +151,7 @@ BicycleCar *ParallelSlot::flnc(BicycleCar *B)
 
 RRTNode *ParallelSlot::fposecenter()
 {
-        if (this->slot().bnodes().front()->y() >
-                        this->slot().bnodes().back()->y())
-                return this->slot().bnodes().front();
-        else
-                return this->slot().bnodes().back();
+        return this->slot().bnodes().front();
 }
 
 bool ParallelSlot::flast(
index 7b19f038ca0a186e000ef5f4441f3016721f9e0a..b2cea9ee263b94c9b912cefcbc5ad143a5139011 100644 (file)
--- a/lpar.json
+++ b/lpar.json
@@ -3,10 +3,10 @@
         "goal": [-1.1, 14.055, 1.5707963267948966],
         "slot": {
                 "polygon": [
-                        [0, 13],
-                        [-2.2, 13],
+                        [0, 17.56],
                         [-2.2, 17.56],
-                        [0, 17.56]
+                        [-2.2, 13],
+                        [0, 13]
                 ]
         },
         "obst": [