Skip to content

Commit 793601a

Browse files
authored
Merge pull request #21 from agilexrobotics/pr
demo增加piper_stop
2 parents 3b59ac0 + 9060fc1 commit 793601a

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

demo/V1/README(EN).MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ V1
4747
├── piper_set_mit.py
4848
├── piper_slave_config.py
4949
├── piper_status.py
50+
├── piper_stop.py
5051
├── read_gripper_status.py
5152
├── read_joint_state.py
5253
└── read_piper_hardware.py
@@ -71,6 +72,7 @@ V1
7172
| `piper_set_mit.py` | Set the robotic arm to MIT mode, where it responds the fastest |
7273
| `piper_slave_config.py` | Set the robotic arm as the slave arm |
7374
| `piper_status.py` | Read the status of the robotic arm |
75+
| `piper_stop.py` |The robotic arm stops with a slow descent, and it needs to be reset and re-enabled twice after use|
7476
| `read_gripper_status.py` | Read the status of the gripper |
7577
| `read_joint_state.py` | Read joint angle messages and print them |
7678
| `read_piper_hardware.py` | Read the firmware version of the robotic arm's main controller |

demo/V1/README.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ V1
4747
├── piper_set_mit.py
4848
├── piper_slave_config.py
4949
├── piper_status.py
50+
├── piper_stop.py
5051
├── read_gripper_status.py
5152
├── read_joint_state.py
5253
└── read_piper_hardware.py
@@ -71,6 +72,7 @@ V1
7172
|`piper_set_mit.py`|设定机械臂为mit模式,这个模式下机械臂响应最快速|
7273
|`piper_slave_config.py`|机械臂设置为从臂|
7374
|`piper_status.py`|机械臂状态读取|
75+
|`piper_stop.py`|机械臂停止缓慢下落,需要在使用后reset,并重新使能两次|
7476
|`read_gripper_status.py`|机械臂夹爪状态读取|
7577
|`read_joint_state.py`|读取关节角消息并打印|
7678
|`read_piper_hardware.py`|读取机械臂主控固件版本|

demo/V1/piper_stop.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env python3
2+
# -*-coding:utf8-*-
3+
# 注意demo无法直接运行,需要pip安装sdk后才能运行
4+
# 设置机械臂重置,需要在mit或者示教模式切换为位置速度控制模式时执行
5+
# 使用后需要reset,并重新使能两次
6+
7+
from typing import (
8+
Optional,
9+
)
10+
import time
11+
from piper_sdk import *
12+
13+
# 测试代码
14+
if __name__ == "__main__":
15+
piper = C_PiperInterface()
16+
piper.ConnectPort()
17+
piper.MotionCtrl_1(0x01,0,0)

demo/V2/README(EN).MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ V2
4949
├── piper_set_mit.py
5050
├── piper_slave_config.py
5151
├── piper_status.py
52+
├── piper_stop.py
5253
├── read_gripper_status.py
5354
├── read_joint_state.py
5455
├── read_piper_hardware.py
@@ -77,6 +78,7 @@ V2
7778
| `piper_set_mit.py` | Set the robotic arm to MIT mode, where it responds the fastest |
7879
| `piper_slave_config.py` | Set the robotic arm as the slave arm |
7980
| `piper_status.py` | Read the status of the robotic arm |
81+
| `piper_stop.py` |The robotic arm stops with a slow descent, and it needs to be reset and re-enabled twice after use|
8082
| `read_gripper_status.py` | Read the status of the gripper |
8183
| `read_joint_state.py` | Read joint angle messages and print them |
8284
| `read_piper_hardware.py` | Read the firmware version of the robotic arm's main controller |

demo/V2/README.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ V2
4949
├── piper_set_mit.py
5050
├── piper_slave_config.py
5151
├── piper_status.py
52+
├── piper_stop.py
5253
├── read_gripper_status.py
5354
├── read_joint_state.py
5455
├── read_piper_hardware.py
@@ -77,6 +78,7 @@ V2
7778
|`piper_set_mit.py`|设定机械臂为mit模式,这个模式下机械臂响应最快速|
7879
|`piper_slave_config.py`|机械臂设置为从臂|
7980
|`piper_status.py`|机械臂状态读取|
81+
|`piper_stop.py`|机械臂停止缓慢下落,需要在使用后reset,并重新使能两次|
8082
|`read_gripper_status.py`|机械臂夹爪状态读取|
8183
|`read_joint_state.py`|读取关节角消息并打印|
8284
|`read_piper_hardware.py`|读取机械臂主控固件版本|

demo/V2/piper_stop.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env python3
2+
# -*-coding:utf8-*-
3+
# 注意demo无法直接运行,需要pip安装sdk后才能运行
4+
# 设置机械臂重置,需要在mit或者示教模式切换为位置速度控制模式时执行
5+
# 使用后需要reset,并重新使能两次
6+
7+
from typing import (
8+
Optional,
9+
)
10+
import time
11+
from piper_sdk import *
12+
13+
# 测试代码
14+
if __name__ == "__main__":
15+
piper = C_PiperInterface_V2()
16+
piper.ConnectPort()
17+
piper.MotionCtrl_1(0x01,0,0)

0 commit comments

Comments
 (0)