update robot motion