Skip to content

This is a simulation of an autonomous car using CARLA software .

Notifications You must be signed in to change notification settings

Sachin1Negi/Simulation-of-Autonomous-Car

Repository files navigation

Self Driving Car Simulation

Starting the CARLA Simulator in a new command prompt window ( Launching CARLA at 30 fps in a windowed screen in server mode and opening one of the default maps in the simulator that is race track) cd2

Now connecting the CARLA server with a python client which will run the main controller2d.py code ( this will control the vehicle and it will self drive through the race track). The simulation has been started! :-

cd1

Car navigating along the racetrack alongwith the live plotting of its forward speed vs time, throttle force vs time, brake force vs time, steer angle vs time curves :-

cd3

Live plotting of the trajectory curve of the vehicle along the waypoints(graph shows current coordinates of vehicle) :-

cd4

A grader command :-

[python grade_c1m7.py racetrack_waypoints.txt controller_output\trajectory.txt]

can be run in the command prompt(in the same directory as the coursera final project to verify the accuracy of the solution and the following output is obtained)

The vehicle speed is compared with the reference speed(desired speed which was expected from the simulation). It is found that the autonomous car operates at a speed nearly equal to the reference speed.

Figure_2

The path traversered by the final project solution (obtained through this siumlation) is compared with the waypoints of the racetrack in this graph. It was found that almost 100% waypoints were satisfied :-

Figure_1

Link for demo video of the simulation:- https://drive.google.com/file/d/1gnKZD60DnolTCnG7s8Wpk-GAXQKkfbH8/view?usp=sharing

Releases

No releases published

Packages

No packages published

Languages