快速使用
使用前提
- 请先参考openarm软件配置文档:https://oymotion.feishu.cn/wiki/AithwPYX7ispY4k8DGCcQrzCnkd?fromScene=spaceOverview 将openarm所需配置安装完毕
- 详细的openarm sdk说明文档:https://oymotion.feishu.cn/wiki/LKpYwn8YXiM1x6knB2hcb3HYniy?fromScene=spaceOverview
- 先启动moveit rviz运动控制系统服务(SDK依赖此服务)
- 再启动gRPC设备网关系统服务(SDK依赖此服务)
安装
pip install openarm-sdk
使用示例
获取当前openarm机械臂的状态
from openarm_sdk import OpenArmClient, Arm
with OpenArmClient("127.0.0.1:50051") as robot:
robot.wait_until_channel_ready(timeout=5.0)
print(robot.target)
# 获取双臂每个关节的状态
for state in robot.state.get_joint_states(Arm.BOTH):
print(state.arm.name)
print(state.positions_rad)
print(state.velocities_rad_s)
Metadata
Release files for openarm-sdk 26.10.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openarm_sdk-26.10.8.tar.gz | 100.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openarm_sdk-26.10.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 171.5 kB
Release files / openarm_sdk-26.10.8.tar.gz
| Download URL | openarm_sdk-26.10.8.tar.gz |
|---|---|
| Size | 100.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8aeb8e1b6623acdd7a0fa928eaa6f93bc75bf4d174fc5f8ec76a5d61ecea27a
|
|
BLAKE2b-256 checksum How to use checksums |
91715a6bc30b638a8e0f3cfc76aaf7bf7efff0590fb083d7f4536058521a67f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|
Release files / openarm_sdk-26.10.8-py3-none-any.whl
| Download URL | openarm_sdk-26.10.8-py3-none-any.whl |
|---|---|
| Size | 71.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98cb99a78b83f6fcf0ec793bee205ac2af12e77cd9b742ec8bdae3e89a1bc08a
|
|
BLAKE2b-256 checksum How to use checksums |
a44e6c1541995de09273826f21badeeff57cfb9aa926a552cafbe6cff3a0bc30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|