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