質問編集履歴

1

プログラム修正

2021/07/14 10:06

投稿

okome_i
okome_i

スコア1

test CHANGED
File without changes
test CHANGED
@@ -50,18 +50,6 @@
50
50
 
51
51
 
52
52
 
53
- """@package docstring
54
-
55
- ROS node for controling a Robotiq 2F gripper using the Modbus RTU protocol.
56
-
57
-
58
-
59
- The script takes as an argument the IP address of the gripper. It initializes a baseRobotiq2FGripper object and adds a comModbusTcp client to it. It then loops forever, reading the gripper status and updating its command. The gripper status is published on the 'Robotiq2FGripperRobotInput' topic using the 'Robotiq2FGripper_robot_input' msg type. The node subscribes to the 'Robotiq2FGripperRobotOutput' topic for new commands using the 'Robotiq2FGripper_robot_output' msg type. Examples are provided to control the gripper (Robotiq2FGripperSimpleController.py) and interpreting its status (Robotiq2FGripperStatusListener.py).
60
-
61
- """
62
-
63
-
64
-
65
53
  import roslib; roslib.load_manifest('robotiq_2f_gripper_control')
66
54
 
67
55
  roslib.load_manifest('robotiq_modbus_rtu')
@@ -168,20 +156,6 @@
168
156
 
169
157
  ```
170
158
 
171
-
172
-
173
- """@package docstring
174
-
175
- Module comModbusRtu: defines a class which communicates with Robotiq Grippers using the Modbus RTU protocol.
176
-
177
-
178
-
179
- The module depends on pymodbus (http://code.google.com/p/pymodbus/) for the Modbus RTU client.
180
-
181
- """
182
-
183
-
184
-
185
159
  from __future__ import print_function
186
160
 
187
161
 
@@ -320,18 +294,6 @@
320
294
 
321
295
  ```
322
296
 
323
- """@package docstring
324
-
325
- Module baseRobotiq2FGripper: defines a base class for handling command and status of the Robotiq 2F gripper.
326
-
327
-
328
-
329
- After being instanciated, a 'client' member must be added to the object. This client depends on the communication protocol used by the Gripper. As an example, the ROS node 'Robotiq2FGripperTcpNode.py' instanciate a robotiqbaseRobotiq2FGripper and adds a client defined in the module comModbusTcp.
330
-
331
- """
332
-
333
-
334
-
335
297
  from robotiq_2f_gripper_control.msg import _Robotiq2FGripper_robot_input as inputMsg
336
298
 
337
299
  from robotiq_2f_gripper_control.msg import _Robotiq2FGripper_robot_output as outputMsg