However, I can't help but think "What if they had the machine perform a random set of rotations beforehand and then this video is just showing the robot running those rotations in reverse?".
There is a flash and a pause in the action at one point, implying the robot is looking at the current configuration and working out the right moves, but I'm going to take it with a large grain of salt, anyway.