From 3c2adfa56013dd262ae314258424496b65d2954a Mon Sep 17 00:00:00 2001 From: Daniel Christoph <daniel.christoph@informatik.hu-berlin.de> Date: Sat, 14 Dec 2019 17:47:00 +0100 Subject: [PATCH] Update Simulation/location_monitor/scripts/location_monitor_node.py --- .../location_monitor/scripts/location_monitor_node.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Simulation/location_monitor/scripts/location_monitor_node.py b/Simulation/location_monitor/scripts/location_monitor_node.py index 019ef44..850f2d7 100644 --- a/Simulation/location_monitor/scripts/location_monitor_node.py +++ b/Simulation/location_monitor/scripts/location_monitor_node.py @@ -5,11 +5,9 @@ import rospy from nav_msgs.msg import Odometry ob = [] - - - - - +ob.append((0.00 , -0.70)); #Beispeiele, befinden sich auf der X Linie +ob.append((0.00 , 0.00)); +ob.append((0.00 , 0.80)); def distance(x1, y1, x2, y2): xd = x1 - x2 @@ -24,7 +22,7 @@ def callback(msg): for l_x, l_y in ob: dist = distance(x, y, l_x, l_y) - if dist < 0.20: + if dist < 0.20: #muss individuell angepasst wreden rospy.loginfo("Collision!") -- GitLab