From 760fe88f262f6f739e5b9b9195db7638def9d862 Mon Sep 17 00:00:00 2001 From: Daniel Nakhimovich Date: Wed, 27 Jan 2021 00:18:37 -0500 Subject: [PATCH 1/2] fix print() syntax --- .../src/nxt_controllers/joint_position_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxt_controllers/src/nxt_controllers/joint_position_controller.py b/nxt_controllers/src/nxt_controllers/joint_position_controller.py index 13c55d9..9fcb037 100755 --- a/nxt_controllers/src/nxt_controllers/joint_position_controller.py +++ b/nxt_controllers/src/nxt_controllers/joint_position_controller.py @@ -72,7 +72,7 @@ def jnt_state_cb(self, msg): cmd = JointCommand() cmd.name = self.name cmd.effort = 190.0 * (self.pos_desi - pos) - 4.0 * self.vel - print 'Joint at %f, going to %f, commanding joint %f'%(pos,self.pos_desi, cmd.effort) + print('Joint at %f, going to %f, commanding joint %f'%(pos,self.pos_desi, cmd.effort)) self.pub.publish(cmd) From 71594177df91fbf3536ac7d06def79d16350256f Mon Sep 17 00:00:00 2001 From: Daniel Nakhimovich Date: Wed, 27 Jan 2021 00:20:05 -0500 Subject: [PATCH 2/2] fix print() syntax --- nxt_ros/src/nxt_ros/nxt_ros.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxt_ros/src/nxt_ros/nxt_ros.py b/nxt_ros/src/nxt_ros/nxt_ros.py index 9654c0d..552d916 100755 --- a/nxt_ros/src/nxt_ros/nxt_ros.py +++ b/nxt_ros/src/nxt_ros/nxt_ros.py @@ -471,7 +471,7 @@ def main(): # Define exit handler def cleanup_node(): - print "Shutting down node" + print("Shutting down node") for c in config: if c['type'] == 'color': # If there's a color sensor, turn off the LED light