Getting a robot to stand on two wheels without tipping over involves a challenging dance with the laws of physics.