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.0.tar.gz (1.7 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.0-cp310-cp310-manylinux_2_17_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: openarmx_arm_driver-1.0.0.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

Hashes for openarmx_arm_driver-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b3b1d73de502cddfe39a35ab9b24aecc7fc3b0b787a0e23bb4bd9d32ceab8d9f
MD5 e788ee3dd7f924c5c37fa449093b9fe2
BLAKE2b-256 3c98c5805867006409f1977251816a90a1ad8a6b94d46db4b9b73aca9f16d369

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openarmx_arm_driver-1.0.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 dfe16a6b0fc35df23175d6f9a2a7a0e1e940c4f8bbde40cf1ad7f9379a0deaca
MD5 93e594b1d3877e2deb94efb01d177b39
BLAKE2b-256 0811cd22b48a728392c5c7d536854518a9ef066b7fe6c8546a5b087be76bd1e8

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