RoboGeeks

myCobot Pro 450 | Can a Robot Solve a Rubik's Cube?

Elephant Robotics · Uploaded · 3:34 · Watch on YouTube

Elephant Robotics demonstrates a myCobot Pro 450 collaborative arm solving a scrambled 2x2 Rubik's Cube. The video explains how a camera scan, a shortest-path search, and a Python motion planner turn the solution into physical gripper moves.

Transcript

Captions as a .vtt fileEmbed with the transcript

  1. 0:02Hello everyone, today we will build a robot that solves a 2x2 Rubik's Cube
  2. 0:07using a MyCobot Pro 450 and a MyGripper F100. For this setup, we will be using
  3. 0:14the MyCobot Pro 450, a 6-axis collaborative robot arm, the MyGripper F100, a force-controlled
  4. 0:23gripper, a 2x2 Rubik's Cube, and a 3D-printed holder that keeps it in place. You will also
  5. 0:31need a camera on your computer to scan the cube. Now, let's see how it works. We scrambled
  6. 0:38the cube with three twists, and the robotic arm never saw what we did, so how does it
  7. 0:43figure out the fewest moves to solve it? It starts with the scan. We show all six faces
  8. 0:48to the camera, and the colors tell the solver where each of the eight corner pieces sits,
  9. 0:53and which way it's turned. Unlike humans, the robot doesn't solve the cube layer by layer,
  10. 0:59and it doesn't need complex 3x3 algorithms like Cochambas. Because a 2x2 cube is small
  11. 1:04enough, an algorithm called bi-directional breadth-first search can find the true mathematical shortest
  12. 1:10path in just milliseconds. First, we simplify the puzzle. Turning the whole cube in your hand
  13. 1:17doesn't change it, so the solver treats the back bottom left corner as a fixed reference.
  14. 1:22Then we only ever need to twist three faces. Up, right, and front. That gives us exactly
  15. 1:28nine possible moves from any state, capping the entire universe of the 2x2 cube at just
  16. 1:343.67 million positions. To search those states fast, it doesn't search one way, which explodes
  17. 1:41with every extra twist. Instead, it launches two searches at once, one expanding forward from
  18. 1:46the scrambled state, and one working backward from the solved cube, layer by layer. Since
  19. 1:52no 2x2 scramble takes more than 11 moves, these two search trees collide in the middle almost
  20. 1:57instantly, locking in the shortest possible move sequence. The answer is then renamed to
  21. 2:03match the way we scan the cube. For our scramble, that is three twists. L'', B', U'.
  22. 2:09Finally, a separate Python motion planner translates that abstract move list into real, robot actions.
  23. 2:18Since the gripper can only twist the face that is on top, the planner tracks the cube's 3D
  24. 2:22orientation in memory, inserting physical cube flips between twists, so the right face
  25. 2:28is always on top. For this solve, three twists became 17 robot actions, five of them flips.
  26. 2:36Now let's see the robot solve the cube.
Embed this video with its transcript

Paste this into your page. The frame holds the player and the transcript; the link below it says where the transcript comes from.

Discussion

You pick a name in the next step. Already a member? Log in.

A mail when somebody comments. No account needed.

The newsletter

Get our free newsletter with new robots, prices and robotics news.