From 984c1876baf8a4e32b1e52fe2f42d15a8a5881c8 Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Mon, 25 Feb 2019 16:42:37 +0100 Subject: [PATCH] Add DH setter --- decision_control/slotplanner.cc | 6 ++++++ incl/slotplanner.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/decision_control/slotplanner.cc b/decision_control/slotplanner.cc index ef37dea..51effeb 100644 --- a/decision_control/slotplanner.cc +++ b/decision_control/slotplanner.cc @@ -37,6 +37,12 @@ PolygonObstacle &ParallelSlot::slot() return this->slot_; } +// setter +void ParallelSlot::DH(float dh) +{ + this->DH_ = dh; +} + // other RRTNode *ParallelSlot::fposecenter() { diff --git a/incl/slotplanner.h b/incl/slotplanner.h index cf87b6a..2a8a961 100644 --- a/incl/slotplanner.h +++ b/incl/slotplanner.h @@ -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 */ -- 2.39.2