Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 following robot models:

Model Arm DOF Grip Special Features
Archer Y6 6 Optional (GP80 / none) MIT / joint position / Cartesian pose commands
Firefly Y6 6 Optional (GP80 / none) MIT / joint position / Cartesian pose commands
Firefly Y6 H2_40 6 Optional (GP80 / none) Same interface as Firefly Y6; drives RtArmFireflyY6_H2_40 (robot type 39) via HexRobotFireflyY6H2_40
Hello Y6 6 Joystick grip RGB LED strip control, joystick input

The library runs each robot controller in a background thread, streams robot states via deque ring buffers, and exposes consistent readers (get_arm_state, get_grip_state on Archer/Firefly, or get_grip_joy on Hello Y6) plus model‑specific command writers: MIT impedance, joint position, and Cartesian pose commands on Archer and Firefly, and grip RGB LED control on Hello Y6. Each model also provides a callback variant for event‑driven state handling.

What problem it solves

  • Unified robot interface: Use the same API pattern for different robot models (Hello Y6, Archer Y6, Firefly Y6).
  • Background control: Each robot controller runs in its own thread; the main thread only reads the latest state when needed.
  • Low‑latency sharing: States and commands are passed through deque ring buffers, avoiding serialization overhead.
  • Real‑time control: Archer and Firefly support MIT impedance, MIT with compensation, joint position, and Cartesian pose commands; Hello Y6 focuses on motor telemetry, joystick input, and LED control on the grip.
  • Callback support: Every model offers a callback class for event‑driven programming alongside the polling‑based class.

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.

Project structure

hex_driver_robot/
├── hex_driver_robot/
│   ├── __init__.py              # Package exports (all public classes)
│   ├── base.py                  # HexRobotBase (abstract) & HexRobotBaseParams
│   ├── robot_archer_y6/
│   │   ├── __init__.py
│   │   └── robot.py             # Archer Y6 driver + callback + params
│   ├── robot_firefly_y6/
│   │   ├── __init__.py
│   │   └── robot.py             # Firefly Y6 driver + callback + params
│   └── robot_hello_y6/
│       ├── __init__.py
│       └── robot.py             # Hello Y6 driver + callback + params
├── example/
│   ├── archer_y6_example.py
│   ├── archer_y6_callback_example.py
│   ├── firefly_y6_example.py
│   ├── firefly_y6_callback_example.py
│   ├── firefly_y6_h2_40_example.py
│   ├── hello_y6_example.py
│   └── hello_y6_callback_example.py
└── docs/
    ├── api.md                   # Full API reference
    └── example.md               # Usage walkthroughs

📦 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_util_msg ≥ 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 in editable mode.
  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.

📄 License

Apache License 2.0. See LICENSE.

🌟 Star History

Star History Chart

👥 Contributors

Metadata

Release files for hex-driver-robot 0.1.1a4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hex-driver-robot 0.1.1a4
File Size Uploaded Provenance Actions
hex_driver_robot-0.1.1a4.tar.gz 81.4 kB Without provenance Details for hex_driver_robot-0.1.1a4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hex-driver-robot 0.1.1a4
File Interpreter ABI Platform Actions
hex_driver_robot-0.1.1a4-py3-none-any.whl Python 3 none any Details for hex_driver_robot-0.1.1a4-py3-none-any.whl

Total release size: 177.1 kB

Release files / hex_driver_robot-0.1.1a4.tar.gz

Download URL hex_driver_robot-0.1.1a4.tar.gz
Size 81.4 kB
Tags Source
SHA-256 checksum
How to use checksums
512690db88c13b6a8a73f981419dccf98daf5cd31efda03055ce75ebae434dc3
BLAKE2b-256 checksum
How to use checksums
7f606c791bcb585607ec5faf863bf24ac3409ac9a35b68733a3dc97954072685
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.18

Release files / hex_driver_robot-0.1.1a4-py3-none-any.whl

Download URL hex_driver_robot-0.1.1a4-py3-none-any.whl
Size 95.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4673df2a24e5cc31c4f7159daf626331863c22e5dc63e64b113e0621da8c939
BLAKE2b-256 checksum
How to use checksums
c5e1eec28ad091dda1848042453e0830fa681d27d221b9b43170b150b98d7bb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.18

Security for hex-driver-robot 0.1.1a4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page