Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openarmx_arm_driver-1.0.1.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openarmx_arm_driver-1.0.1-cp310-cp310-manylinux_2_17_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file openarmx_arm_driver-1.0.1.tar.gz.

File metadata

  • Download URL: openarmx_arm_driver-1.0.1.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for openarmx_arm_driver-1.0.1.tar.gz
Algorithm Hash digest
SHA256 78b24e23a3a18cb828a2ebb3c090dc2a736832c106a17c282e7c31c749fa4a86
MD5 3180684eda8b0f74288381ebb2bf5e6d
BLAKE2b-256 741d13f1570cadee53a110bd306c68934d65ee468864afe831c884c9e17682b9

See more details on using hashes here.

File details

Details for the file openarmx_arm_driver-1.0.1-cp310-cp310-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for openarmx_arm_driver-1.0.1-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 457292ddd9e47b9982dc8e387ffa8c27a5444ac8b1461b590313d28297fe08a8
MD5 e95d349874e7a1d09fa984b1a4c43598
BLAKE2b-256 838c1268ad7369e9c05b2c04d7b9e37f5e5a2c5883409d218d50e40e63e5c4d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page