Skip to content

Commit 123a791

Browse files
change print function
1 parent 9ee34a8 commit 123a791

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

robotiq_3f_gripper_control/nodes/Robotiq3FGripperSimpleController.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
This serves as an example for publishing messages on the 'Robotiq3FGripperRobotOutput' topic using the 'Robotiq3FGripper_robot_output' msg type for sending commands to a 3F gripper gripper. In this example, only the simple control mode is implemented. For using the advanced control mode, please refer to the Robotiq support website (support.robotiq.com).
4343
"""
4444

45+
from __future__ import print_function
4546
import roslib; roslib.load_manifest('robotiq_3f_gripper_control')
4647
import rospy
4748
from robotiq_3f_gripper_articulated_msgs.msg import Robotiq3FGripperRobotOutput
@@ -140,7 +141,7 @@ def askForCommand(command):
140141
## currentCommand += ', rSPS = ' + str(command.rSPS)
141142
## currentCommand += ', rFRS = ' + str(command.rFRS)
142143

143-
print currentCommand
144+
print(currentCommand)
144145

145146
strAskForCommand = '-----\nAvailable commands\n\n'
146147
strAskForCommand += 'r: Reset\n'

robotiq_3f_gripper_control/nodes/Robotiq3FGripperStatusListener.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
This serves as an example for receiving messages from the 'Robotiq3FGripperRobotInput' topic using the 'Robotiq3FGripper_robot_input' msg type and interpreting the corresponding status of the 3F gripper gripper.
4242
"""
4343

44+
from __future__ import print_function
4445
import roslib; roslib.load_manifest('robotiq_3f_gripper_control')
4546
import rospy
4647
from std_msgs.msg import String
@@ -49,7 +50,7 @@
4950
def printStatus(status):
5051
"""Print the status string generated by the statusInterpreter function."""
5152

52-
print statusInterpreter(status)
53+
print(statusInterpreter(status))
5354

5455
def Robotiq3FGripperStatusListener():
5556
"""Initialize the node and subscribe to the Robotiq3FGripperRobotInput topic."""

0 commit comments

Comments
 (0)