LG Silicon Valley Lab has developed a Unity-based multi-robot simulator for autonomous vehicle developers. We provide an out-of-the-box solution which can meet the needs of developers wishing to focus on testing their autonomous vehicle algorithms. It currently has integration with the Duckietown, TierIV's Autoware, and Baidu's Apollo platforms, can generate HD maps, and be immediately used for testing and validation of a whole system with little need for custom integrations. We hope to build a collaborative community among robotics and autonomous vehicle developers by open sourcing our efforts.
To use the simulator with Apollo, after following the build steps for the simulator, follow the guide on our Apollo fork.
To use the simulator with Autoware, build the simulator then follow the guide on our Autoware fork.
(Link)
Running the simulator with reasonable performance and frame rate (for perception related tasks) requires a high performance desktop. Below is the recommended system for running the simulator at high quality. We are currently working on performance improvements for a better experience.
Recommended system:
- 4 GHz Dual core CPU
- Nvidia GTX 1080
- Windows 10 64 Bit
The easiest way to get started with running the simulator is to open it as a project in Unity and run inside the Unity Editor. Otherwise, you can build the Unity project into a standalone executable. Currently, running the simulator in Windows yields better performance than running on Linux.
-
Install Unity 2018.2.4. Windows link: https://unity3d.com/get-unity/download/archive
Linux link (2018.2.4f1): https://beta.unity3d.com/download/fe703c5165de/public_download.html
-
Install Git LFS (this should be as simple as
git lfs install
). Since this repository contains several large files, we speed up clones/uploads with Git LFS. This is a requirement for cloning our project, and without it the repository cannot be set up properly. -
Clone this repository from Github:
git clone https://github.com/lgsvl/simulator.git
-
Open Unity Editor by navigating to where it is installed and launching the Unity executable.
-
Open the simulator project that was cloned in step 3 by selecting the simulator folder.
-
Run the simulator. On the bottom left in the Project panel, Navigate to Assets->Scenes. Then double-click "Menu" (with the Unity icon next to it) to load the scene. At the top of the editor, click the Play button to start the simulator.
If you would prefer to not run in Unity Editor and build the standalone executable yourself, follow the instructions here.
- After starting the simulator, you should see the main menu. Currently, only Free Roaming mode is supported. Click "Free Roaming."
- Select the appropriate map and vehicle. For a standard setup, select "SanFrancisco" for map and "XE_Rigged-apollo" for Robot. If connecting with Autoware or Apollo, make sure simulator establishes connection with rosbridge. Click "Run" to begin. The program will not allow running if there is no established connection with a rosbridge. To bypass this and just test out the simulator environment, hold down the Shift button and click "Run."
- The vehicle/robot should spawn inside the map environment that was selected. Read here for an explanation of all current keyboard shortcuts and controls.
- Follow the guides on our respective Autoware and Apollo repositories for instructions on running the platforms with the simulator.
Look here for a guide to currently available functionality and keyboard shortcuts for using the simulator.
Please feel free to provide feedback or ask questions by creating a Github issue. For inquiries about collaboration, please email Dmitry Zelenkovsky at [email protected].
Copyright (c) 2018 LG Electronics, Inc.
This software contains code licensed as described in LICENSE.