From 34e99dec19006c15ecebe585770b5baf8d40e574 Mon Sep 17 00:00:00 2001
From: fherrero <fherrero@iri.upc.edu>
Date: Thu, 10 May 2018 20:33:38 +0200
Subject: [PATCH] Added auto_stop launch include to spawn_car.launch

---
 launch/spawn_car.launch | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/launch/spawn_car.launch b/launch/spawn_car.launch
index f0947ab..3ded385 100644
--- a/launch/spawn_car.launch
+++ b/launch/spawn_car.launch
@@ -48,6 +48,18 @@
              to="/odom"/>
   </node>
   
+  <arg name="break_distance" default="0.5"/>
+  <arg name="angle"          default="40"/>
+  <node pkg="auto_stop"
+        type="auto_stop_node"
+        name="auto_stop"
+        output="screen">
+    <param name="angle_front"    type="int"     value="$(arg angle)" />
+    <param name="angle_back"     type="int"     value="$(arg angle)"/>
+    <param name="break_distance" type="double"  value="$(arg break_distance)"/>
+    <param name="break_distance_based_on_speed" type="bool"  value="false"/>
+  </node>
+  
   <node name="imu_filter"
         pkg ="imu_filter_madgwick"
         type="imu_filter_node"
-- 
GitLab