Skip to content

Mini Pupper v4 navigates obstacle course with ROS 2 and reinforcement learning walk

MangDang tested Mini Pupper v4 on a 1.5 x 0.75 m obstacle course combining ROS 2 Nav2 for path planning and a blind reinforcement learning policy for walking. The system uses an LD06 lidar, SLAM Toolbox, and a small neural network trained with PPO to output joint targets at 50 Hz based on IMU and joint data without sensing the ground or lidar. Open source code, simulation environments, and training tutorials are available on GitHub.

Article text · Original source

Hi everyone,

We at MangDang have been teaching our small quadruped, Mini Pupper v4, to walk for the last couple of months. Recently we put it to the test on a mini obstacle course, combining ROS and reinforcement learning, and wanted to share how it’s going. It’s very much an early idea and a work in progress.

We split the job in two. ROS 2 decides where to go by using a 2D lidar, SLAM and Nav2 to work out where the robot is and plan a path. A reinforcement learning policy does the actual walking, turning Nav2’s velocity commands into leg motion. The policy is blind and never sees the lidar or the ground, only the IMU, its own joints and the command, so the steps in the course are something it has to feel its way over.

The robot: LD06 on top, Pi 5 underneath

The robot: LD06 on top, Pi 5 underneath1600×1237 284 KB

Everything runs on the robot’s Raspberry Pi 5 with ROS 2 Jazzy:

  • Mapping: an LD06 lidar feeds SLAM Toolbox, which builds the map and keeps track of the robot on it.

  • Odometry: an estimate from the walking commands plus the gyro, fused with robot_localization’s EKF.

  • Navigation: Nav2 with the Smac 2D planner and Regulated Pure Pursuit.

  • Walking: a small neural network trained with PPO in simulation. It looks at the last 0.2 s of gravity direction, gyro, joint angles and velocities, plus the command, and outputs 12 joint targets at 50 Hz.

The course is about 1.5 × 0.75 m. For now the only obstacle is a little staircase. We’ll add more later on, ideas are welcome!

In simulation

On the real robot (2× speed)

Our code is open source and updated regularly:

The ROS2 side is still being cleaned up. We’ll add a link here once it’s ready.

I’d love to hear your thoughts, thanks for reading!

Source notes

  1. Mini Pupper v4 on an obstacle course: ROS 2 navigation with a reinforcement-learned walk↩
Source evidence

Reported by the source; not independently verified.

course_length_m
≈1.5[5]
course_width_m
0.75[5]
time_window_s
0.2[4]
file_size_kb
284[3]
code
Reported pending[5]
  1. Hi everyone, We at MangDang have been teaching our small quadruped, Mini Pupper v4, to walk for the last couple of months. Recently we put it to the test on a mini obstacle course, combining ROS and reinforcement learning, and wanted to share how it’s going. It’s very much an early idea and a work in progress. We split the job in two. ROS 2 decides where to go by using a 2D lidar, SLAM and Nav2 to work out where the
    Exact source
  2. robot is and plan a path. A reinforcement learning policy does the actual walking, turning Nav2’s velocity commands into leg motion. The policy is blind and never sees the lidar or the ground, only the IMU, its own joints and the command, so the steps in the course are something it has to feel its way over. The robot: LD06 on top, Pi 5 underneath 1600×1237 284 KB Everything runs on the robot’s Raspberry Pi 5 with ROS
    Exact source↩
  3. 2 Jazzy: Mapping: an LD06 lidar feeds SLAM Toolbox, which builds the map and keeps track of the robot on it. Odometry: an estimate from the walking commands plus the gyro, fused with robot_localization’s EKF. Navigation: Nav2 with the Smac 2D planner and Regulated Pure Pursuit. Walking: a small neural network trained with PPO in simulation. It looks at the last 0.2 s of gravity direction, gyro, joint angles and velo
    Exact source↩
  4. cities, plus the command, and outputs 12 joint targets at 50 Hz. The course is about 1.5 × 0.75 m. For now the only obstacle is a little staircase. We’ll add more later on, ideas are welcome! Our code is open source and updated regularly: Reinforcement learning policies, with their training code: GitHub - mangdangroboticsclub/mini_pupper_4_rl: Mini Pupper V4 Reinforcement Learning Library · GitHub Robot models, servo
    Exact source↩
  5. models and simulation environments: GitHub - mangdangroboticsclub/mini_pupper_4_sim: Home of the Mini Pupper v4 digital twin · GitHub A tutorial on how the walker was trained: https://mini-pupper-rl-tutorial.readthedocs.io Find more about our robot here: GitHub - mangdangroboticsclub/mini_pupper: Open-source physical AI platform bridging ROS and RL — from learning to earning. · GitHub The ROS2 side is still being cl
    Exact source

Automatically extracted; no manual editorial approval recorded.

Article details
Signal

MangDang demonstrates a quadruped where ROS 2 Nav2 plans paths via lidar while a blind reinforcement learning policy executes walking commands using only IMU and joint data.

Timezone · UTC

Article dates follow your selected timezone. Briefing editions use Hong Kong time (UTC+8).