File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
robotiq_3f_gripper_control Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 3
3
<launch >
4
4
<arg name =" ip_address" default =" 192.168.131.41" />
5
5
6
- <node name =" s_model" pkg =" robotiq_3f_gripper_control" type =" SModelTcpNode.py" ns = " UR_1 " respawn =" true" output =" screen" >
7
- <param name =" s_model_ip " value =" $(arg ip_address)" />
8
- </node >
6
+ <node name =" s_model" pkg =" robotiq_3f_gripper_control" type =" SModelTcpNode.py" respawn =" true" output =" screen" >
7
+ <param name =" ip_address " value =" $(arg ip_address)" />
8
+ </node >
9
9
10
10
</launch >
Original file line number Diff line number Diff line change 51
51
from robotiq_3f_gripper_msgs .msg import SModelRobotOutput as outputMsg
52
52
53
53
def mainLoop ():
54
+ rospy .init_node ('~' )
54
55
55
56
print "Launching S-Model Gripper Control"
56
- address = rospy .get_param ('/s_model_ip ' , '192.168.1.19' )
57
+ address = rospy .get_param ('~ip_address ' , '192.168.1.19' )
57
58
58
59
#Gripper is a S-Model with a TCP connection
59
60
gripper = robotiq_3f_gripper_control .baseSModel .robotiqBaseSModel ()
@@ -62,8 +63,6 @@ def mainLoop():
62
63
#We connect to the address received as an argument
63
64
gripper .client .connectToDevice (address )
64
65
65
- rospy .init_node ('robotiqSModel' )
66
-
67
66
#The Gripper status is published on the topic named 'SModelRobotInput'
68
67
pub = rospy .Publisher ('SModelRobotInput' , inputMsg , queue_size = 1 )
69
68
You can’t perform that action at this time.
0 commit comments