1. A method comprising: moving a mobile device with a desired motion for a robot that is remote from the mobile device, the mobile device having a camera; determining a trajectory of the mobile device using images captured by the camera; converting the trajectory of the mobile device into the desired motion of the robot; and generating control information for the robot to move with the desired motion.