Hexapod Robot Simulation & Control

A sophisticated six-legged hexapod robot developed using ROS 2 and Gazebo simulation, achieving stable locomotion across multiple terrains with advanced SLAM navigation capabilities.

ROS 2
Gazebo
URDF/Xacro
LiDARTBI
Computer VisionTBI
SLAMTBI
Python
TBI = To Be Implemented
View on GitHub
Hexapod Robot Simulation & Control - Image 1
Hexapod Robot Simulation & Control - Image 2
Hexapod Robot Simulation & Control - Image 3
Hexapod Robot Simulation & Control - Image 4

Demonstration Videos

Hardware Architecture

Distributed control system with real-time servo management

(Block diagram visualization coming soon — hardware features not implemented yet, only software simulation)

Sensors

RPLidar A1

360° Laser Scanning
10Hz max, 12m Range

MYNT Eye 3D Stereo Camera

Stereo Camera for Depth Sensing

MPU6050 IMU

6-DOF Sensor

Main Controller

Raspberry Pi 5

4GB RAM, Quad-core ARM
Ubuntu 24.04 + ROS2 Jazzy
Main processing and coordination

Real-time Controller

STM32F103

Real-time Control
Communication Protocol: SPI
UART as backup

PWM Controllers

PCA9685 #1

16-ch PWM Controller
Servos 1-9

PCA9685 #2

16-ch PWM Controller
Servos 10-18

Servo Motors

18 Total Servo Motors

RF Leg
Coxa
Femur
Tibia
RM Leg
Coxa
Femur
Tibia
RR Leg
Coxa
Femur
Tibia
LF Leg
Coxa
Femur
Tibia
LM Leg
Coxa
Femur
Tibia
LR Leg
Coxa
Femur
Tibia

Project Overview

This project represents a comprehensive approach to legged robotics, combining advanced simulation techniques with real-world control algorithms. The hexapod robot was designed from the ground up using URDF/Xacro modeling, ensuring precise joint limits and realistic physics simulation.

The robot features a sophisticated walking algorithm that enables multiple gait patterns, from tripod gaits for speed to wave gaits for stability on challenging terrain. The integration of LiDAR sensors provides autonomous navigation capabilities through SLAM (Simultaneous Localization and Mapping), allowing the robot to build maps of unknown environments while navigating obstacles.

Key technical achievements include an improvement in simulation accuracy through detailed mesh-based leg structures, less than 5% deviation in step trajectory precision, and over 90% obstacle avoidance success rate in complex simulated environments. The system also features optimized gait dynamics that reduced computation latency by 25% while improving motion smoothness.

Key Features

  • Six-legged locomotion with tripod gait pattern
  • Teleop Keyboard control interface with custom settings.
  • Custom joint trajectory controllers
  • Real-time SLAM navigation and mappingTBI
  • LiDAR-based obstacle detection and avoidanceTBI
  • Computer vision integration for enhanced perceptionTBI

Challenges

  • Achieving stable locomotion across different terrain types
  • Implementing the SLAM algorithm for real-time mapping
  • Integrating LiDAR data for obstacle detection
  • URDF Origin and mesh optimization for accurate simulation

Outcomes

  • Improvement in simulation accuracy
  • <5% deviation in step trajectory precision
Back to Portfolio
2025 Project