Repository
ggldnl

ggldnl/H-0996

Main repository for my hexapod robot

60sao
4fork
0issue
0lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: gaits

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: hexapod-robot

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: hexapod

#1 Repository của tuần

H-0996

A fully open-source, low-cost six-legged robot.

The actual robot

🌍 Overview

This is an end-to-end reference for building and controlling a hexapod robot: 3D-printable parts and a bill of materials, an optional custom PCB, C++ firmware running the control loop on the robot, a high-level interface with that running on a Raspberry Pi, python APIs, ROS2 nodes and simulators (Gazebo, PyBullet, Viser).

Many hexapod resources are fragmented, require costly hardware or rely on closed components. Many other projects built a huge active community but depend on proprietary code. This project explicitly avoids that: everything is implemented in the open and thoroughly documented.

Body pose control Tripod gait

Note: It looks like it's wobbling a lot, but it is only due to the servos not being calibrated yet.

🧠 Architecture

The main components of the robot are two boards: a Raspberry Pi and a Servo2040. The Raspberry Pi handles configuration, telemetry, and whatever high-level logic you put on top; the Servo2040 owns the near-real-time work.

Architecture

The two boards talk over a UART link at 921600 baud, carrying CRC-framed binary messages.

Note that on the Servo2040 the router and the control loop are not a pipeline. A frame arriving only updates the desired state; the control loop never stops, and on each tick it reads whatever the current desired state is and turns it into joint angles. A late or dropped message therefore never stalls the robot: it simply keeps executing the last intent it was given, until the watchdog decides the link is gone and sits it down.

The control loop works on a kinematic frame and only maps into servo space at the very last step, which keeps the behaviour layer portable. The current version drives position-controlled servos.

🔧 Repositories

Each repository focuses on one aspect of the robot and documents it in depth.

RepositoryWhat it is
H-0996-FirmwareC++17 firmware for the Servo2040: state machine, gait generator, IK, and the wire protocol
H-0996-ControllerPi-side Python client: opens the link, provisions the board from YAML configs, streams velocity/body pose setpoints, reads telemetry. Includes a servo calibration tool
H-0996-SimulationPyBullet physics sim and a viser 3D visualizer, both driving the host-compiled firmware core
H-0996-Hardware3D-printable parts, full BOM and a step-by-step assembly guide
H-0996-PCBOptional custom PCB that simplifies the wiring and makes the assembly much cleaner

For those working in a ROS2 ecosystem:

RepositoryWhat it is
H-0996-ROS-PythonWraps the Python controller as a ROS2 node, exposing the robot through topics, actions and services
H-0996-GazeboLaunch files to load the robot in Gazebo, taking the URDF and meshes straight from H-0996-Hardware

✨ Highlights

  • Fully documented binary protocol. A compact HDLC-style framing (CRC-16/CCITT) over UART at 921600 baud, with three message kinds: fire-and-forget setpoints, request/reply queries, and acknowledged provisioning. Every opcode and payload is specified byte-by-byte.
  • Configure without reflashing. The board ships with baked-in defaults and is fully functional standalone, but the Pi pushes the whole robot description (geometry, leg mounts, gait parameters, limits, per-servo calibration) from a single YAML file at connect time.
  • The simulation runs the real firmware. The same C++ core is compiled into a shared library and driven by the same Python client through an in-process transport. Sim and hardware exercise the code, so what you tune in simulation is what the robot executes.
  • Safety. A command watchdog sits the robot down and de-energizes it if the link goes quiet for 500 ms, a software over-current cutoff trips an emergency stop, and every command is clamped against velocity, joint and body-pose limits.

🚀 Getting started

Try it without hardware. H-0996-Simulation pulls in the firmware, controller and hardware repos as submodules, compiles the firmware core and runs it under PyBullet or viser (optionally including teleop with a gamepad):

git clone --recursive https://github.com/ggldnl/H-0996-Simulation.git
cd H-0996-Simulation
./bridge/build.sh
mamba env create -f environment.yml && mamba activate hexapod-sim
python -m simulation.bullet.main  # simulation.viser.main, simulation.bullet.teleop

Drive the real robot. Flash the firmware on the Servo2040, install the controller on the Pi, and you are three lines away from walking:

from hexapod import connect

bot = connect()                 # opens the serial link, provisions from default config.yml
bot.enable()                    # stand up
bot.set_velocity(120, 0, 0)     # vx, vy in mm/s, yaw rate in deg/s
print(bot.get_telemetry())      # state, odometry, voltage, current
bot.shutdown()                  # sit down and de-energize the motors

Build one. Start from H-0996-Hardware for the printed parts, the BOM and the assembly guide, then add H-0996-PCB if you want to skip the wiring mess.

🔭 What's coming

  • Vision. A camera on the robot, exposed as a ROS2 image topic so perception nodes can subscribe to it. Currently being worked on.
  • Force sensing. Some form of contact feedback at the feet — a dedicated sensor, or joint torque estimated from current-controlled actuators — will open the door to terrain-adaptive gaits, reactive foot placement and other closed-loop locomotion strategies. This will likely lead to a redesign.

🤝 Contribution

Feel free to contribute by opening issues or submitting pull requests. Give a ⭐️ to this project if you liked the content.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC++
csiro-robotics/syropod_highlevel_controller

OpenSHC: A Versatile Multilegged Robot Controller

187
Jun 17, 2021
RepositoryPython
littlecodersh/ItChat

A complete and graceful API for Wechat. 微信个人号接口、微信机器人及命令行微信,三十行即可自定义个人号机器人。

26.4k
Sep 28, 2023
Repository
TianxingChen/Embodied-AI-Guide

[Lumina具身智能社区] 具身智能技术指南 Embodied-AI-Guide

17.1k
Nov 17, 2026
RepositoryGo
go-vgo/robotgo

RobotGo, Go Native cross-platform RPA, GUI automation, Auto test and Computer use @vcaesar

10.9k
Dec 1, 2026
RepositoryHTML
nasa-jpl/open-source-rover

A build-it-yourself, 6-wheel rover based on the rovers on Mars!

9.8k
Nov 6, 2026
RepositoryGo
hybridgroup/gobot

Golang framework for robotics, drones, and the Internet of Things (IoT)

9.5k
Jan 7, 2026
RepositoryC++
Ewenwan/MVision

机器人视觉 移动机器人 VS-SLAM ORB-SLAM2 深度学习目标检测 yolov3 行为检测 opencv PCL 机器学习 无人驾驶

8.8k
Jul 9, 2024
RepositoryC++
lich0821/WeChatFerry

微信机器人,可接入DeepSeek、Gemini、ChatGPT、ChatGLM、讯飞星火、Tigerbot等大模型。微信 hook WeChat Robot Hook.

6.8k
Jul 10, 2026
RepositoryShell
ClemensElflein/OpenMower

Let's upgrade cheap off-the-shelf robotic mowers to modern, smart RTK GPS based lawn mowing robots!

6.8k
Sep 3, 2026