From 17ea1b0477c220749a0ee9266db787fd25d39171 Mon Sep 17 00:00:00 2001 From: manuellla Date: Thu, 23 Jan 2025 22:57:33 -0300 Subject: [PATCH] fixed python3 things --- src/follow_waypoints/follow_waypoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/follow_waypoints/follow_waypoints.py b/src/follow_waypoints/follow_waypoints.py index f9bc19f..951ab25 100644 --- a/src/follow_waypoints/follow_waypoints.py +++ b/src/follow_waypoints/follow_waypoints.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import threading import rospy @@ -185,7 +185,7 @@ def wait_for_start_journey(): try: pose = rospy.wait_for_message(topic, PoseWithCovarianceStamped, timeout=1) except rospy.ROSException as e: - if 'timeout exceeded' in e.message: + if 'timeout exceeded' in str(e): continue # no new waypoint within timeout, looping... else: raise e