]> rtime.felk.cvut.cz Git - hubacji1/iamcar.git/commitdiff
Add DH setter
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Mon, 25 Feb 2019 15:42:37 +0000 (16:42 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Tue, 26 Feb 2019 09:19:53 +0000 (10:19 +0100)
decision_control/slotplanner.cc
incl/slotplanner.h

index ef37dea6d6a74436d59e59fde62db82b8467a5a6..51effebc98887b78b3d7f4f922a134ba33e3b843 100644 (file)
@@ -37,6 +37,12 @@ PolygonObstacle &ParallelSlot::slot()
         return this->slot_;
 }
 
+// setter
+void ParallelSlot::DH(float dh)
+{
+        this->DH_ = dh;
+}
+
 // other
 RRTNode *ParallelSlot::fposecenter()
 {
index cf87b6a327d02e8b1e5dbed0c72862b237ebc766..2a8a96111d9087d7f07a63ec22db8af57ef9c32d 100644 (file)
@@ -34,6 +34,9 @@ class ParallelSlot {
                 float DH() const;
                 PolygonObstacle &slot();
 
+                // setter
+                void DH(float dh);
+
                 // other
                 RRTNode *fposecenter();
                 /** Recursive function to find out the moves */