Skip to content

Commit 0938da6

Browse files
committed
320新增力控夹爪ros使用、pi版本新增自适应夹爪使用
1 parent 9555a6c commit 0938da6

File tree

4 files changed

+94
-17
lines changed

4 files changed

+94
-17
lines changed

11-ApplicationBaseROS/11.1-ROS1/11.1.1-320M5/11.1.1.4-基础功能.md

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,55 @@ poster="" data-setup='{"aspectRatio":"16:9"}'>
1111
<source src="../../../resources/11-ApplicationBaseROS/video/320-m5-ros1-gripper-slider.mp4"></video>
1212

1313
Open a command line and run:
14+
15+
>> **Note: If the end effector uses myGripper F100 force-controlled gripper, the version of the pymycobot driver library must be greater than 3.6.4**
1416
1517
```bash
1618
# The default serial port name of 2022 mycobot 320-M5 version is "/dev/ttyUSB0", and the baud rate is 115200. The serial port name of some models is "dev/ttyACM0". If the default serial port name is wrong, you can change the serial port name to "/dev/ttyACM0".
1719
roslaunch new_mycobot_320 mycobot_320_slider.launch port:=/dev/ttyUSB0 baud:=115200
1820

19-
# If the end is equipped with an adaptive gripper, run (only supports M5 version, serial port modification is the same as above):
21+
# If the end is equipped with a Pro adaptive gripper, run (serial port modification is the same as above):
2022
roslaunch new_mycobot_320 mycobot_320_gripper_slider.launch port:=/dev/ttyUSB0 baud:=115200
23+
24+
# If the end is equipped with a myGripper F100 force-controlled gripper, run (serial port modification is the same as above):
25+
roslaunch new_mycobot_320 mycobot_320_force_gripper_slider.launch port:=/dev/ttyACM0 baud:=115200
2126
```
2227

2328
**rviz and a slider component will be opened**, and you will see the following interface:
2429

2530
<img src =../../../resources/11-ApplicationBaseROS/12.2.7-4.jpg
2631
width ="500" align = "center">
2732

28-
If the end is equipped with an adaptive gripper, you will see the following screen:
33+
If the Pro adaptive gripper is installed at the end, you will see the following interface:
2934

3035
<img src =../../../resources/11-ApplicationBaseROS/12.1.4-4.png
31-
width ="500" align = "center">
36+
width ="500" align = "center">
37+
38+
If the myGripper F100 force-controlled gripper is installed at the end, you will see the following interface:
39+
40+
<img src =../../../resources/11-ApplicationBaseROS/12.1.4-20.png
41+
width ="500" align = "center">
3242

3343
Then you can **control the model in rviz to make it move by dragging the slider**. If you want the real mycobot to move with the model, you need to open another command line and run:
44+
45+
>> **Note: If the end effector uses myGripper F100 force-controlled gripper, the version of the pymycobot driver library must be greater than 3.6.4**
3446
3547
```bash
3648
# The default serial port name of 2022 mycobot 320-M5 version is "/dev/ttyUSB0", and the baud rate is 115200. The serial port name of some models is "dev/ttyACM0". If the default serial port name is wrong, you can change the serial port name to "/dev/ttyACM0".
3749
rosrun new_mycobot_320 mycobot_320_slider.py _port:=/dev/ttyUSB0 _baud:=115200
3850

39-
# If the end is equipped with an adaptive gripper, run (only supports M5 version, serial port modification is the same as above):
51+
# If the end is equipped with a Pro adaptive gripper, run (serial port modification is the same as above):
4052
rosrun new_mycobot_320 mycobot_320_gripper_slider.py _port:=/dev/ttyUSB0 _baud:=115200
53+
54+
# If the end is equipped with a myGripper F100 force-controlled gripper, run (serial port modification is the same as above):
55+
rosrun new_mycobot_320 mycobot_320_force_gripper_slider.py _port:=/dev/ttyACM0 _baud:=115200
4156
```
4257

4358
**Note: Since the robot arm will move to the current position of the model when the command is input, make sure that the model in rviz does not appear to be worn out before you use the command.**
4459

4560
**Do not drag the slider quickly after connecting the robot arm to prevent damage to the robot arm**.
4661

47-
### 2 Model Following
62+
## 2 Model Following
4863

4964
In addition to the above controls, we can also let the model move by following the real robot arm.
5065

@@ -67,7 +82,7 @@ roslaunch new_mycobot_320 mycobot_320_follow_display.launch
6782

6883
It will **open rviz to show the model following effect.**
6984

70-
### 3 GUI control
85+
## 3 GUI control
7186

7287
On the basis of the previous contents, this package also **provides a simple GUI control interface.** This method is used for interaction between real robot arms. Connect to mycobot.
7388

@@ -87,7 +102,7 @@ width ="500" align = "center">
87102

88103
**Note:** Before using the gripper switch button, make sure the adaptive gripper is connected to the end of the robot arm.
89104

90-
### 4 Keyboard control
105+
## 4 Keyboard control
91106

92107
**Keyboard control is added** in `new_mycobot_320` package, and real-time Synchronization is performed in rviz. This function depends on pythonApi, so be sure to connect with the real robot arm.
93108

@@ -203,10 +218,12 @@ Parameters supported by this script:
203218
* _speed: the movement speed of the robot arm
204219
* _change_percent: movement distance percentage
205220
206-
### 5 moveit use
221+
## 5 moveit use
207222
208223
`mycobot_ros` has integrated the MoveIt section.
209224
225+
>> **Note: If the end effector uses myGripper F100 force-controlled gripper, the version of the pymycobot driver library must be greater than 3.6.4**
226+
210227
<video id="my-video" class="video-js" controls preload="auto" width="100%"
211228
poster="" data-setup='{"aspectRatio":"16:9"}'>
212229
<source src="../../../resources/11-ApplicationBaseROS/video/320-m5-ros1-moveit.mp4"></video>
@@ -216,31 +233,42 @@ Open the command line and run:
216233
```bash
217234
roslaunch new_mycobot_320_moveit mycobot320_moveit.launch
218235
219-
# If the end is equipped with an adaptive gripper, run (only M5 version is supported):
236+
# If the end is equipped with a Pro adaptive gripper, run:
220237
roslaunch new_mycobot_320_gripper_moveit mycobot320_gripper_moveit.launch
238+
239+
# If the end is equipped with a myGripper F100 force-controlled gripper, run:
240+
roslaunch new_mycobot_320_force_gripper_moveit mycobot320_force_gripper_moveit.launch
221241
```
222242
223243
The operation effect is as follows:
224244
225245
<img src =../../../resources/11-ApplicationBaseROS/12.2.7-9.jpg
226246
width ="500" align = "center">
227247
228-
If the end is equipped with an adaptive gripper, the operation effect is as follows:
248+
If the end is equipped with a Pro adaptive gripper, the operation effect is as follows:
229249
230250
<img src =../../../resources/11-ApplicationBaseROS/12.1.4-5.png
231-
width ="500" align = "center">>
251+
width ="500" align = "center">
252+
253+
If the end is equipped with a myGripper F100 force-controlled gripper, the operation effect is as follows:
254+
255+
<img src =../../../resources/11-ApplicationBaseROS/12.1.4-21.png
256+
width ="500" align = "center">
232257
233258
If you want a real robot arm to execute a plan synchronously, you need to open another command line and run:
234259
235260
```bash
236261
# The default serial port name of 2022 mycobot 320-M5 version is "/dev/ttyUSB0", and the baud rate is 115200. The serial port name of some models is "dev/ttyACM0". If the default serial port name is wrong, you can change the serial port name to "/dev/ttyACM0".
237262
rosrun new_mycobot_320_moveit sync_plan.py _port:=/dev/ttyUSB0 _baud:=115200
238263
239-
# If the end is equipped with an adaptive gripper, run (only supports M5 version, serial port modification is the same as above):
264+
# If the end is equipped with a Pro adaptive gripper, run (serial port modification is the same as above):
240265
rosrun new_mycobot_320_gripper_moveit sync_plan.py _port:=/dev/ttyUSB0 _baud:=115200
266+
267+
# If the end is equipped with a myGripper F100 force-controlled gripper, run (serial port modification is the same as above):
268+
rosrun new_mycobot_320_force_gripper_moveit sync_plan.py _port:=/dev/ttyACM0 _baud:=115200
241269
```
242270
243-
**Note:** If the end is equipped with an adaptive gripper, and you need to plan the gripper, you need to switch the planning group to the planning group of the gripper.
271+
**Note:** If the end point is equipped with Pro adaptive grippers or myGripper F100 force-controlled grippers and the grippers need to be planned, you need to switch the planning group to the planning group of the grippers.
244272
245273
<img src =../../../resources/11-ApplicationBaseROS/12.1.4-6.jpg
246274
width ="500" align = "center">>

11-ApplicationBaseROS/11.1-ROS1/11.1.2-320PI/11.1.2.4-基础功能.md

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,35 @@ width ="500" align = "center">
1212
width ="500" align = "center">
1313

1414
Then run the command:
15+
16+
>> **Note: If the end effector uses myGripper F100 force-controlled gripper, the version of the pymycobot driver library must be greater than 3.6.4**
1517
1618
```bash
1719
# The default serial port name of 2022 mycobot 320-Pi version is "/dev/ttyAMA0", and the baud rate is 115200.
1820
roslaunch new_mycobot_320_pi mycobot_320_slider.launch port:=/dev/ttyAMA0 baud:=115200
21+
22+
# If the end is equipped with a Pro adaptive gripper, run:
23+
roslaunch new_mycobot_320_pi mycobot_320_gripper_slider.launch
24+
25+
# If the end is equipped with a myGripper F100 force-controlled gripper, run:
26+
roslaunch new_mycobot_320_pi mycobot_320_force_gripper_slider.launch
1927
```
2028

2129
**rviz and a slider component will be opened**, and you will see the following interface:
2230

2331
<img src =../../../resources/11-ApplicationBaseROS/12.2.7-4.jpg
2432
width ="500" align = "center">
2533

34+
If the Pro adaptive gripper is installed at the end, you will see the following interface:
35+
36+
<img src =../../../resources/11-ApplicationBaseROS/12.1.4-4.png
37+
width ="500" align = "center">
38+
39+
If the myGripper F100 force-controlled gripper is installed at the end, you will see the following interface:
40+
41+
<img src =../../../resources/11-ApplicationBaseROS/12.1.4-20.png
42+
width ="500" align = "center">
43+
2644
Then you can **control the model in rviz to make it move by dragging the slider**. If you want the real mycobot to move with the model, you need to open another ROS1 environment terminal:
2745

2846
<img src =../../../resources/11-ApplicationBaseROS/12.1.4-1.jpg
@@ -34,16 +52,24 @@ width ="500" align = "center">
3452

3553
Then run the command:
3654

55+
>> **Note: If the end effector uses myGripper F100 force-controlled gripper, the version of the pymycobot driver library must be greater than 3.6.4**
56+
3757
```bash
3858
# The default serial port name of 2022 mycobot 320-Pi version is "/dev/ttyAMA0", and the baud rate is 115200.
3959
rosrun new_mycobot_320_pi mycobot_320_slider.py _port:=/dev/ttyAMA0 _baud:=115200
60+
61+
# If the end is equipped with a Pro adaptive gripper, run:
62+
rosrun new_mycobot_320_pi mycobot_320_gripper_slider.py
63+
64+
# If the end is equipped with a myGripper F100 force-controlled gripper, run:
65+
rosrun new_mycobot_320_pi mycobot_320_force_gripper_slider.py
4066
```
4167

4268
**Note: Since the robot arm will move to the current position of the model when the command is input, make sure that the model in rviz does not appear to be worn out before you use the command.**
4369

4470
**Do not drag the slider quickly after connecting the robot arm to prevent damage to the robot arm**.
4571

46-
### 2 Model Following
72+
## 2 Model Following
4773

4874
In addition to the above controls, we can also let the model move by following the real robot arm. Open a ROS1 environment terminal:
4975

@@ -78,7 +104,7 @@ roslaunch new_mycobot_320 mycobot_320_follow_display.launch
78104

79105
It will **open rviz to show the model following effect.**
80106

81-
### 3 GUI control
107+
## 3 GUI control
82108

83109
On the basis of the previous contents, this package also **provides a simple GUI control interface.** This method is used for interaction between real robot arms. Connect to mycobot.
84110

@@ -103,7 +129,7 @@ width ="500" align = "center">
103129

104130
**Note:** Before using the gripper switch button, make sure the adaptive gripper is connected to the end of the robot arm.
105131

106-
### 4 Keyboard control
132+
## 4 Keyboard control
107133

108134
**Keyboard control is added** in `new_mycobot_320_pi` package, and real-time Synchronization is performed in rviz. This function depends on pythonApi, so be sure to connect with the real robot arm.
109135

@@ -233,28 +259,51 @@ Parameters supported by this script:
233259
* _speed: the movement speed of the robot arm
234260
* _change_percent: movement distance percentage
235261
236-
### 5 moveit use
262+
## 5 moveit use
237263
238264
`mycobot_ros` has integrated the MoveIt section.
239265
266+
>> **Note: If the end effector uses myGripper F100 force-controlled gripper, the version of the pymycobot driver library must be greater than 3.6.4**
267+
240268
Open the command line and run:
241269
242270
```bash
243271
roslaunch new_mycobot_320_pi_moveit mycobot320_moveit.launch
272+
273+
# If the Pro adaptive gripper is installed at the end, run:
274+
roslaunch new_mycobot_320_pi_gripper_moveit mycobot320_gripper_moveit.launch
275+
276+
# If the myGripper F100 force-controlled gripper is installed at the end, run:
277+
roslaunch new_mycobot_320_pi_force_gripper_moveit mycobot320_force_gripper_moveit.launch
244278
```
245279
246280
The operation effect is as follows:
247281
248282
<img src =../../../resources/11-ApplicationBaseROS/12.2.7-9.jpg
249283
width ="500" align = "center">
250284
285+
If the end is equipped with a Pro adaptive gripper, the operation effect is as follows:
286+
287+
<img src =../../../resources/11-ApplicationBaseROS/12.1.4-5.png
288+
width ="500" align = "center">>
289+
290+
If the end is equipped with a myGripper F100 force-controlled gripper, the operation effect is as follows:
291+
292+
<img src =../../../resources/11-ApplicationBaseROS/12.1.4-21.png
293+
width ="500" align = "center">
294+
251295
If you want a real robot arm to execute a plan synchronously, you need to open another command line and run:
252296
253297
```bash
254298
# The default serial port name of 2022 mycobot 320-Pi version is "/dev/ttyAMA0", and the baud rate is 115200.
255299
rosrun new_mycobot_320_pi_moveit sync_plan.py _port:=/dev/ttyAMA0 _baud:=115200
256300
```
257301
302+
**Note:** If the end effector is equipped with an adaptive gripper or myGripper F100 force-controlled gripper and the gripper needs to be planned, the planning group needs to be switched to the planning group of the gripper.
303+
304+
<img src =../../../resources/11-ApplicationBaseROS/12.1.4-6.jpg
305+
width ="500" align = "center">>
306+
258307
#### Modify motion speed
259308
260309
In order to prevent the joints from shaking during the movement of the real robotic arm, the movement speed of the joints needs to be reduced.
207 KB
Loading
185 KB
Loading

0 commit comments

Comments
 (0)