Solving a Giant Rubik's Cube with a Quadruped Robot

Lukas Amiet, Gabriel Sánchez-Blanco Repgen, Mayank Mittal, Victor Klemm, Andrei Cramariuc, Marco Hutter, Cesar CadenaarXiv 2026

TL;DR

Researchers at ETH Zurich have successfully demonstrated a quadruped robot autonomously solving a giant Rubik’s Cube using only its feet—a feat known as pedipulation. By combining an onboard RGB-D perception pipeline with reinforcement-learned whole-body skills, the robot can perceive the cube's state, plan a solution, and execute precise "pin-and-turn" maneuvers to solve the puzzle in under 10 minutes.

Fig. 1: Quadrupedal platform solving a Rubik’s Cube. Scanning: The robot walks a 270◦arc around the cube and flips it once to view all the faces. The callouts show the aggregated color state of the cube at each viewpoint. Planning: An off-the-shelf cube solver computes a solve sequence. We convert this sequence into robot skills. Solving: The robot executes the steps in the computed order.

What Problem Does This Paper Address?

While quadruped robots have become adept at locomotion, using their legs for complex manipulation (pedipulation) remains a significant challenge. Most prior work focuses on simple tasks like pushing buttons or dribbling a ball.

Interacting with a freestanding articulated object like a giant Rubik’s Cube (0.4m wide, 4.6kg) introduces a "dual-control" problem: the robot must stabilize the object's global pose (preventing it from sliding away) while simultaneously manipulating its internal configuration (turning specific layers). Any unintended motion can invalidate the planned sequence, making this a high-stakes test of precision, coordination, and balance.

Methods

The authors propose a decoupled system architecture that separates state estimation from skill execution.

  1. Perception Pipeline: Using a ZED X Mini camera, the system segments the cube, fits a geometric model using RANSAC and ICP, and classifies facelet colors via a k-nearest neighbors (k-NN) classifier. Because the robot cannot see all sides at once, it aggregates partial views into a "complete cube net."
  2. Planning: An off-the-shelf Kociemba solver generates the face-turn sequence, which is then compiled into robot-executable skills (flips, rotations, and repositioning).
  3. Learned Skills: The robot uses four primary skills: Flip Forward/Backward and Rotate CCW/CW. These are trained using Reinforcement Learning (PPO) in the Isaac Lab simulator.
  4. Teacher-Student Distillation: To ensure hardware reliability, "teacher" policies are first trained with privileged information (like exact cube forces). These are then distilled into "student" policies that rely only on onboard depth images and proprioception.
  5. Wrench-Assisted Curriculum: To help the robot learn the difficult "pin-and-turn" motion, the authors used a curriculum that initially provided a virtual "stabilizing hand" (a wrench) to hold the cube, which was gradually phased out as the robot learned to use its own feet for stabilization.
Fig. 2: System architecture. Between skills, cube perception provides the poses and cube net for planning and robot positioning. During a skill, the pedipulation policy acts only on proprioception and the front RealSense depth images.

Datasets

  • Color Classification Dataset: The authors created a custom dataset of 5,819 manually labeled color patches extracted from indoor recordings to train the k-NN classifier.
  • Evaluation Sequences: 10 hardware sequences (5 indoor, 5 outdoor) containing 4,618 annotated facelets were used to benchmark the perception pipeline's accuracy.

Key Insights and Ideas

  • Joint-Space vs. End-Effector Control: The researchers found that direct joint-space control was superior to hierarchical foot-position tracking. Joint-space control allows the robot to better coordinate the subtle interplay between the foot pinning the cube and the foot pushing the layer.
  • Depth as Local Feedback: Instead of trying to track the cube's exact pose at high frequencies during a skill, the student policies use raw depth images. This provides enough local geometric feedback to handle misalignments without the overhead of a full vision pipeline.
  • Sagittal Symmetry: By exploiting the robot's physical symmetry, the team only had to train one rotation policy (CCW) and could mirror it to achieve the opposite rotation (CW), significantly reducing training time.
The perception pipeline: from raw RGB-D to a semantic pose and partial cube net.

Key Results

  • Successful Hardware Solves: The robot completed three full autonomous solves on hardware. Each solve required approximately 30 steps and took 8–9 minutes.
  • Perception Accuracy: The pipeline achieved 100% accuracy in identifying the cube state indoors and 98.7% outdoors, despite challenging lighting and shadows.
  • Robustness: The system proved resilient to external disturbances. In hardware tests, the robot successfully recovered when the cube was moved mid-skill, when its leg was pulled away, or when an obstacle blocked its path.
  • Terrain Versatility: The flipping skills generalized well to different surfaces, including asphalt and cobblestone.

Limitations and Future Work

  • Perception Range: The current vision system's accuracy drops significantly beyond 2 meters due to depth noise, limiting the robot's ability to plan from a distance.
  • Execution Commitment: Once the robot commits to a "press" or "flip" motion, its ability to recover from late-stage perturbations is limited, sometimes leading to falls.
  • Generalization: While the "pin-and-turn" behavior is robust, it is currently tuned for the Rubik's Cube. Future work aims to generalize these multi-limb coordination skills to other everyday objects, such as opening crates or handling toolboxes.
The reward components used to train the flipping and rotation skills.

Summary updated

Abstract

Pedipulating a freestanding articulated object requires controlling its pose and internal configuration while maintaining balance. We demonstrate this capability by autonomously solving a giant Rubik's Cube with a quadruped using only its feet. The task demands repeated precise interactions, since unintended layer motion can invalidate subsequent operations. We develop an onboard RGB-D perception pipeline that estimates the cube's metric pose and its full color state from partial views acquired through locomotion and flipping. A planner converts the computed solve into robot-executable skill sequences. Learned whole-body skills reorient the cube while preserving its layer configuration and turn its layers with one foot pinning the cube as the other pushes. We train these skills using reinforcement learning with privileged observations and distill them into policies that map onboard depth and proprioception to joint targets. The deployed policies tolerate variations in relative robot-cube placement and recover from external disturbances. The system completes three autonomous hardware solves, each about 30 steps over 8-9 minutes. These results show that combining onboard perception with coordinated pedipulation enables a quadruped to complete extended multi-step physical tasks. Additional material can be found at: https://leggedrobotics.github.io/rubik-skills/
BibTeX
@misc{amiet2026solving,
  author = {Lukas Amiet and Gabriel Sánchez-Blanco Repgen and Mayank Mittal and Victor Klemm and Andrei Cramariuc and Marco Hutter and Cesar Cadena},
  title = {{Solving a Giant Rubik's Cube with a Quadruped Robot}},
  year = {2026},
  eprint = {2610.24610},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.24610},
}
Figure