Leap motion for robot control