Skip to content

team-convex-optimization/tco-sim-v1

 
 

Repository files navigation

Self-Driving Car Simulator for the NXP cup EMEA Race

This is a fork of the simulator created by udacity and adapted to simulate the environment of an NXP cup EMEA race.

Unity Simulator User Instructions

  1. Clone the repository to your local directory, please make sure to use Git LFS to properly pull over large texture and model assets.

  2. Install the free game making engine Unity, if you dont already have it. Unity is necessary to load all the assets.

  3. Load Unity, Pick load exiting project and choice the nxp-cup-self-driving-sim folder.

  4. Load up scenes by going to Project tab in the bottom left, and navigating to the folder Assets/SelfDrivingCar/Scenes. To load up one of the scenes, for example the 2019 finals track, double click the file NXPCupTraining.unity. Once the scene is loaded up you can fly around it in the scene viewing window by holding mouse right click to turn, and mouse scroll to zoom.

  5. Play a scene. Jump into game mode anytime by simply clicking the top play button arrow right above the viewing window.

  6. View Scripts. Scripts are what make all the different mechanics of the simulator work and they are located in two different directories, the first is Assets/SelfDrivingCar/Scripts which mostly relate to the UI and socket connections. The second directory for scripts is Assets/Standard Assets/Vehicle/Car/Scripts and they control all the different interactions with the car.

  7. Building a new track. You can easily build a new track by using the prebuilt road prefabs located in Assets/NXPRoadKit/Prefabs click and drag the road prefab pieces onto the editor, you can snap road pieces together easily by using vertex snapping by holding down "v" and dragging a road piece close to another piece.

Self-Driving Car Simulator

About

A self-driving NXP cup EMEA race car simulator built with Unity

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 77.6%
  • ShaderLab 21.7%
  • HLSL 0.7%