Autonomous Rubik's Cube Solver with ROS 2 & Raspberry Pi: Project RS1

Hi everyone!

I wanted to share a personal project I’ve been working on for the past few months: an autonomous robot that solves a Rubik’s Cube, built entirely around the ROS 2 ecosystem. I call it RS1.

The Project & Architecture

The goal was to create a compact, standalone solver running on a Raspberry Pi. I used ROS 2 to orchestrate the entire system, managing the communication between:

  • Computer Vision Node: To scan and map the cube state.
  • Algorithm Node: To compute the solution.
  • Hardware Interface: To control the motors and execute the moves.

It has been a challenging journey—especially coordinating the hardware constraints with real-time processing—but I was incredibly proud to see the project recently reposted by the official Open Robotics page on LinkedIn!

Request for Feedback

While the system is functional, I know there is room for improvement in the code structure and ROS 2 design patterns. I am posting here because I’d love to get feedback from experienced ROS developers on the architecture or suggestions for optimization.

Links & Code

Thanks for checking it out!

5 Likes

I was really impressed with the simplicity and elegance of this project! Reducing such a complex task to three operations that can be completed by hobby servos / steppers is really impressive.

Looking forward to seeing the rest of the code. If you are interested in open sourcing the hardware please reach out.

1 Like