From 8a1d63de982c9d298e749d168e6f9503123eb45f Mon Sep 17 00:00:00 2001 From: Shun Hasegawa Date: Thu, 17 Aug 2023 21:49:10 +0900 Subject: [PATCH] [jsk_interactive_marker/scripts/transformable_markers_client.py] Fix for Python3 --- .../scripts/transformable_markers_client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jsk_interactive_markers/jsk_interactive_marker/scripts/transformable_markers_client.py b/jsk_interactive_markers/jsk_interactive_marker/scripts/transformable_markers_client.py index 5c497a30..4c42e12f 100755 --- a/jsk_interactive_markers/jsk_interactive_marker/scripts/transformable_markers_client.py +++ b/jsk_interactive_markers/jsk_interactive_marker/scripts/transformable_markers_client.py @@ -26,6 +26,11 @@ import rospy +# Python2's xrange equals Python3's range, and xrange is removed on Python3 +if not hasattr(__builtins__, 'xrange'): + xrange = range + + class TransformableMarkersClient(object): def __init__(self):