Collision avoidance for second-order mobile robots