Collision-Free Traveling of a Mobile Robot with Two Driven Wheels by Using Obstacle Detection and Trajectory Planning