Skip to content

Latest commit

 

History

History
100 lines (63 loc) · 3.77 KB

build-instructions.md

File metadata and controls

100 lines (63 loc) · 3.77 KB

Instructions to build standalone executable

  1. Download and Install Unity Hub:
  1. Download and Install Unity 2019.1.10f1:
  1. Download and Install Node.js

  2. Make sure you have git-lfs installed before cloning this repository.

    • Instructions for installation are here
    • Verify installation with:
      $ git lfs install
      > Git LFS initialized.
      
  3. Clone simulator from GitHub:

    git clone --single-branch https://github.com/lgsvl/simulator.git
    
  4. Run Unity Hub

  5. In the Projects tab, click Add and select the folder that the Simulator was cloned to

  6. In the Installs tab, click Locate and choose the Unity launcher in the Unity2019.1.10f1 folder

  7. In the Projects tab, verify that the Simulator is using Unity Version 2019.1.10f1 from the dropdown

  8. Double-click the name of the project to launch Unity Editor

  9. Open a terminal window

  • cmd.exe on Windows
  • Terminal on Linux
  1. Navigate to the WebUI folder of the Simulator project
  • Window ex. C:\Users\XXX\Documents\Simulator\WebUI
  • Linux ex. /home/XXX/Projects/Simulator/WebUI
  • Where XXX is the user profile
  1. Run npm install to install dependencies, do this only once or if dependencies change inside packages.json file

  2. Run Build WebUi... in Unity: Simulator -> Build WebUI...

  3. Open Build... in Unity: Simulator -> Build...

  4. Check the Environments and Vehicles that should be generated as AssetBundles

  • They will be located in a folder called AssetBundles in the folder selected as the build location
  • These may also be built separately from the Simulator. In this case they will be put into the AssetBundles folder of the project
  1. (Optional) Click Build to only build the assetbundles. Load the LoaderScene.unity and click the Play button at the top of the editor to start the simulator.

  2. Select the Target OS for the build

  3. Verify Build Simulator is checked for the Simulator to be built

  4. Select a folder that the simulator will be built in

  5. (Optional) Check Development Build to create a Development Build

  6. Click Build

Test Simulator top {: #test-simulator data-toc-label='Test Simulator'}

  1. Ubuntu - Install Vulkan userspace library
sudo apt-get install libvulkan1
  1. Double-click the Simulator.exe that was built

  2. Select graphics options then press Ok

  3. Click Open Browser

  4. In the Maps tab, Add new map with the URL to an environment assetbundle

  • ex. C:\Users\XXX\Desktop\Simulator\AssetBundles\environment_borregasave
  1. In the Vehicles tab, Add new vehicle with the URL to a vehicle assetbundle
  • ex. C:\Users\XXX\Desktop\Simulator\AssetBundles\vehicle_jaguar2015xe
  1. (Optional) Add a manual control "sensor" to the vehicle to enable driving

    1. Click the wrench icon next to the vehicle name
    2. In the text box insert [{"type": "Manual Control", "name": "Manual Car Control"}]
  2. In the Simulations tab, Add new simulation with the added map and vehicle

  3. Press the Play button

  4. The Unity window should now show a vehicle in the built environment