From 75ab69d3f9e8510701a37e23081b0817a6f74efa Mon Sep 17 00:00:00 2001
From: Franz Bethke <bethke@math.hu-berlin.de>
Date: Sat, 28 Apr 2018 19:55:50 +0200
Subject: [PATCH] Make getter of EgoMotion public

---
 modules/catkin_ws/src/car/include/mainNode/EgoMotion.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/catkin_ws/src/car/include/mainNode/EgoMotion.h b/modules/catkin_ws/src/car/include/mainNode/EgoMotion.h
index e4d28b13..785eec3e 100644
--- a/modules/catkin_ws/src/car/include/mainNode/EgoMotion.h
+++ b/modules/catkin_ws/src/car/include/mainNode/EgoMotion.h
@@ -24,6 +24,8 @@ class EgoMotion
     Callback cruiseControllerNotify;
     
     float getDistance(){return distance;}
+    float getPrvSpeed(){return prvSpeed;}
+    float getOwnSpeed(){return stmSpeed;}
     
   private:
     std::atomic<float> distance{0};
@@ -38,7 +40,6 @@ class EgoMotion
     void stmDataCallback(const stmDataMsg::ConstPtr & inMsg);
     
     void computeAndNotify();
-    float getPrvSpeed(){return prvSpeed;}
 };
 }
 
-- 
GitLab