From 1e5c61a691026f13c26f9975cae50ce4019f6bcd Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Thu, 28 May 2020 08:54:33 +1000 Subject: [PATCH] print_function for py3 --- interactive_marker_tutorials/scripts/menu.py | 4 +++- interactive_marker_tutorials/scripts/simple_marker.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/interactive_marker_tutorials/scripts/menu.py b/interactive_marker_tutorials/scripts/menu.py index e2d1854c..dc931082 100755 --- a/interactive_marker_tutorials/scripts/menu.py +++ b/interactive_marker_tutorials/scripts/menu.py @@ -29,6 +29,8 @@ POSSIBILITY OF SUCH DAMAGE. """ +from __future__ import print_function + import rospy from interactive_markers.interactive_marker_server import * @@ -68,7 +70,7 @@ def modeCb(feedback): rospy.loginfo("Switching to menu entry #" + str(h_mode_last)) menu_handler.reApply( server ) - print "DONE" + print("DONE") server.applyChanges() def makeBox( msg ): diff --git a/interactive_marker_tutorials/scripts/simple_marker.py b/interactive_marker_tutorials/scripts/simple_marker.py index fe44c123..0d13c9ab 100755 --- a/interactive_marker_tutorials/scripts/simple_marker.py +++ b/interactive_marker_tutorials/scripts/simple_marker.py @@ -29,6 +29,8 @@ POSSIBILITY OF SUCH DAMAGE. """ +from __future__ import print_function + import rospy from interactive_markers.interactive_marker_server import * @@ -36,7 +38,7 @@ def processFeedback(feedback): p = feedback.pose.position - print feedback.marker_name + " is now at " + str(p.x) + ", " + str(p.y) + ", " + str(p.z) + print(feedback.marker_name + " is now at " + str(p.x) + ", " + str(p.y) + ", " + str(p.z)) if __name__=="__main__": rospy.init_node("simple_marker")