update of the condition if the robot is moving