Python SDK for OpenArmX robotic arm control via CAN bus
Project description
OpenArmX Driver
Python SDK for OpenArmX robotic arm control via CAN bus.
安装
pip install openarmx-driver
快速开始
单臂控制
from openarmx_driver import Arm
# 创建右臂实例
arm = Arm('can0', side='right')
# 使能电机
arm.enable_all()
# 设置为 MIT 模式
arm.set_mode('mit')
# 移动关节
arm.move_joint_mit(motor_id=1, position=0.5, kp=10.0, kd=1.0)
# 查看状态
arm.show_motor_status()
# 停止
arm.disable_all()
双臂控制
from openarmx_driver import Robot
# 创建双臂机器人
robot = Robot(left_canid='can0', right_canid='can1')
# 使能所有电机
robot.enable_all()
# 设置模式
robot.set_mode_all('mit')
# 左右臂对称运动
robot.move_joints_mit(
left_positions=[0.1, 0.2, 0.3, 0, 0, 0, 0],
right_positions=[0.1, 0.2, 0.3, 0, 0, 0, 0],
kp=10.0, kd=1.0
)
# 查看状态
robot.show_all_status()
# 停止
robot.disable_all()
支持的控制模式
- MIT 模式: 位置/速度/扭矩混合控制(带 PD 增益)
License
This project is licensed under the OpenArmX Research and Education License. Commercial use requires a separate license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openarmx_driver-1.0.1.tar.gz
(1.7 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openarmx_driver-1.0.1.tar.gz.
File metadata
- Download URL: openarmx_driver-1.0.1.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2e526f1e68312f08872435fef3370d0cea20c84aa2294f1c9cc6b87cd79e964
|
|
| MD5 |
49a24f677875c80d016d740fc049ef3c
|
|
| BLAKE2b-256 |
6aac26b0973d60ae0104148a1876f4ac0809ec49305798e8a5d1e1aa66972880
|
File details
Details for the file openarmx_driver-1.0.1-cp310-cp310-manylinux_2_17_x86_64.whl.
File metadata
- Download URL: openarmx_driver-1.0.1-cp310-cp310-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2281dc5d1d130529851f2b5c0d1d145973fa0534b9eb0c14c5d974771bb3102f
|
|
| MD5 |
8866a628f2ebbd6426c70a527efcacd0
|
|
| BLAKE2b-256 |
2cb97d1f694cf8a4a3d16249fa17d515bbbab9cf8c91b87540d7b22cefcb78e7
|