← All work

Six legs, eighteen joints

18 DOF A.T.O.M. team project ROS 2 Humble · ros2_control Closed-form leg IK Docker · Gazebo Harmonic

Walking in Gazebo

A tripod gait driven from the keyboard. A /cmd_vel command becomes six foot trajectories, and the leg IK turns each foot position into three joint angles.

The same control node runs the physical robot; I only have the sim footage.

Built with A.T.O.M.

A team robot from the A.T.O.M. robotics lab at MAIT. Three parts are mine.

The control node: /cmd_vel to a tripod gait through ros2_control, two triangles of legs alternating so three feet are always down.

The leg inverse kinematics: closed-form law of cosines, foot target to coxa, femur and tibia angles. It replaced a hand-tuned angle table that only worked for the poses already tuned.

The Docker setup for ROS 2 Humble and Gazebo Harmonic, with GPU and X11 passthrough, so the build works on any laptop.

Why closed-form

A three-joint leg has a closed-form solution: the angles fall out of two triangles, or the target is out of reach. It runs in constant time and never fails to converge, which matters for eighteen joints every control cycle.

The physical build

  • 624.6 mm leg-tip span. The CAD is the A.T.O.M. team's; I started from it.
  • DS3225MG 25 kg servos at every joint.
  • 15×24×5 mm bearings at the joints so the printed plastic is not carrying the load.