From add2510de35ca5a7416a5495170fa2b46b621c18 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Fri, 26 Jan 2018 22:45:55 +0100 Subject: [PATCH] www/lights: Support multiple leds at once --- scripts/gps_follow_waypoints.py | 2 +- www/index.html | 96 ++++++++++++++++++++++----------- 2 files changed, 67 insertions(+), 31 deletions(-) diff --git a/scripts/gps_follow_waypoints.py b/scripts/gps_follow_waypoints.py index e2405f5..78eaea5 100755 --- a/scripts/gps_follow_waypoints.py +++ b/scripts/gps_follow_waypoints.py @@ -64,7 +64,7 @@ class GPSGotoCoords: if self.move_base.get_state() == GoalStatus.SUCCEEDED: rospy.loginfo("The base moved to (%f, %f)" % (lat, lon)) else: - rospy.logerr("The base failed to (%f, %f)" % (lat, lon)) + rospy.logerr("The base failed to (%f, %f). Error: %d" % (lat, lon, self.move_base.get_state())) exit(1) def on_shutdown(self): diff --git a/www/index.html b/www/index.html index 5a229a7..87da1ea 100644 --- a/www/index.html +++ b/www/index.html @@ -9,6 +9,9 @@