Skip to main content

HEXFELLOW Robot Driver

Project description

HEXFELLOW ROBOT DRIVER

DOI       


📖 Overview

What is hex_driver_robot

hex_driver_robot is a Python library for controlling HEXFELLOW robots with a unified interface. It supports the Hello Y6 (6‑DOF arm with 7‑DOF grip), Archer Y6 (6‑DOF arm with optional grip), and Firefly Y6 (6‑DOF arm with optional grip) robot models. The library runs each robot controller in a separate process, streams robot states via shared‑memory ring buffers, and exposes consistent readers (get_arm_motor, get_grip_motor, and on Archer/Firefly get_arm_end) plus model‑specific writers: MIT / joint position / Cartesian pose commands on Archer and Firefly, and grip RGB LEDs on Hello Y6.

What problem it solves

  • Unified robot interface: Use the same API for different robot models (Hello Y6, Archer Y6, Firefly Y6).
  • Background control: Each robot controller runs in its own process; the main thread only reads the latest state when needed.
  • Low‑latency sharing: States and commands are passed through shared‑memory ring buffers, avoiding serialization overhead.
  • Real‑time control: Archer and Firefly support MIT impedance, joint position, Cartesian pose, and grip position commands; Hello Y6 focuses on motor telemetry and LED control on the grip.

Target users

  • Robotics researchers prototyping manipulation pipelines with HEXFELLOW robots.
  • Developers who need a simple, consistent way to interface with real robot hardware.
  • Anyone who wants to switch between different robot models without changing client code.

📦 Installation

Requirements

  • Python ≥ 3.10
  • OS: Linux (macOS/Windows may work but are less tested)
  • Core dependencies:
    • hex_util_runtime ≥ 0.0.0, < 0.1.0
    • hex_util_robot ≥ 0.0.0, < 0.1.0
    • hex_util_urdf ≥ 0.0.0, < 0.1.0
    • hex_device ≥ 1.4.0, < 1.5.0

Install from PyPI

pip install hex_driver_robot

Install from Source

For those who need examples, you can install the package from source code with examples.

Note: We use uv to manage the Python environment. Please install it first.

  1. Clone and install in editable mode. The venv.sh script expects uv.

    git clone https://github.com/hexfellow/hex_driver_robot.git
    cd hex_driver_robot
    ./venv.sh
    
    • ./venv.sh — creates .venv, installs hex_driver_robot with example dependencies.
    • ./venv.sh --min — installs the core package only (without example dependencies). Some examples will not run.
    • ./venv.sh --pkg-only — installs the package only, skips example-related dependencies.
  2. Activate before running examples:

    source .venv/bin/activate
    

📑 API

See API for details of all robot driver classes and parameters.

💡 Example

See Example for usage aligned with example/archer_y6_example.py, example/firefly_y6_example.py, and example/hello_y6_example.py.

📚 Citation

If you want to cite this project in your work, you can use the following BibTeX entry:

@software{hex_zmq_servers,
  author    = {Dong, Zhaorui and Chen, Zejun},
  title     = {Hex ZMQ Servers: A ZeroMQ-Based Embodied AI Communication Framework},
  year      = {2025},
  publisher = {Zenodo},
  version   = {v1.0.0},
  doi       = {10.5281/zenodo.18309960},
  url       = {https://doi.org/10.5281/zenodo.18309960}
}

📄 License

Apache License 2.0. See LICENSE.

🌟 Star History

Star History Chart

👥 Contributors

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

hex_driver_robot-0.1.0a1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

hex_driver_robot-0.1.0a1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file hex_driver_robot-0.1.0a1.tar.gz.

File metadata

  • Download URL: hex_driver_robot-0.1.0a1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for hex_driver_robot-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 3a508f54decf6ceb65992b54b35546db4e2b02f2e6748f9b053446d613d11e1b
MD5 b02d34c7abfaa8008ff923baf4895e7c
BLAKE2b-256 06e060a08b66d2ae6cb6c9e3e929ebf7bd469503980e463aefaff351d4106f60

See more details on using hashes here.

File details

Details for the file hex_driver_robot-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for hex_driver_robot-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef11ffc44d2bd9b723a6b938db0b27806ff3511b56e8768437dc1bd7b8d0aaf7
MD5 d68a27950d1199ea8b92d492f3748814
BLAKE2b-256 22127987aa7b36106f382789da000f27527a2be670047b840e10fe717dadc954

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