]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/commitdiff
Fix car dimension settings in test template
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 16 Mar 2023 13:42:25 +0000 (14:42 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 16 Mar 2023 13:42:25 +0000 (14:42 +0100)
rrts/incl/rrts.hh
rrts/src/rrts.cc
src/template-with-reset.cc

index 6f66e7a679a721546d09665d5f47c346d4aa0c34..2e85862c529e2e14fd29ca977af035124d367d17 100644 (file)
@@ -125,6 +125,9 @@ public:
        /*! Set pose of the bicycle car used in the planner. */
        void set_bc_pose_to(Pose const& p);
 
+       /*! Set bicycle car dimensions. */
+       void set_bc_to_become(std::string what);
+
        /*! Get goal. */
        RRTGoal const& goal(void) const;
 
index 2c58e49c9e29efb7d61cfb7ad241cdd359da6747..7cd4684deadee7ab413b97553309b178becd3678 100644 (file)
@@ -279,6 +279,12 @@ RRTS::set_bc_pose_to(Pose const& p)
        this->_bc.set_pose_to(p);
 }
 
+void
+RRTS::set_bc_to_become(std::string what)
+{
+       this->_bc.become(what);
+}
+
 RRTGoal const&
 RRTS::goal(void) const
 {
index bd9d97288c3bb7e07de603fc11b7046550906b56..c1ac6d968f3ebfa5b6834e2e562936cbe598825b 100644 (file)
@@ -124,7 +124,7 @@ int main()
        //p.bc().df(2.895 + 0.9); // this is guess
        //p.bc().len(4.918);
        //p.eta(0.1);
-       c.become("porsche cayenne");
+       p.set_bc_to_become("porsche cayenne");
 
        p.json(jvi);
        unsigned int icnt = 0;