I implemented a 2D controller for the CARLA simulator to control the vehicle to follow a racetrack by navigating through preset waypoints. The simulated car has to reach these waypoints at certain desired speeds, which requires both longitudinal and lateral control.
- Developed a 2D controller for a simulated autonomous vehicle with Python. The controller record waypoint variables in each simulation step and outputs the throttle, steer, and brake accordingly.
- Trajectory feedback sends the car and track information to controller for updates. Controls feedback compare the desired speed and actually speed to adjust accordingly (close loop).
- The trajectory is recorded in a .txt file and passed into a Python script to plot position and velocity at each waypoint.