Skip to content

yumianhuli2/simulator-2019.05-obsolete

 
 

Repository files navigation

LGSVL Simulator: An Autonomous Vehicle Simulator

Upcoming release: 2019.07

Check out our blog post about our upcoming release, and subscribe to our mailing list here for the latest updates.

Introduction

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.

For Chinese-speaking users, you can also view our latest videos here and download our simulator releases here (code: 6k91). 对于中国的用户,您也可在哔哩哔哩上观看我们最新发布的视频,从百度网盘(提取码: 6k91)上下载使用我们的仿真器。

Video

ROSCON2018: LG Autonomous Simulator driving with Baidu Apollo & Tier IV Autoware

(Link)

Getting Started

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 download our latest release and run as a standalone executable.

For the latest functionality or if you want to modify the simulator for your own needs, you can checkout our source, 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.

Downloading and starting simulator

  1. Download the latest release of the LGSVL Simulator for your supported operating system (Windows or Linux) here: https://github.com/lgsvl/simulator/releases/latest
  2. Unzip the downloaded folder and run the executable.

Steps for starting simulator in Unity Editor

  1. 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

  2. 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.

  3. Clone this repository from Github:

      git clone https://github.com/lgsvl/simulator.git
    
  4. Open Unity Editor by navigating to where it is installed and launching the Unity executable.

  5. Open the simulator project that was cloned in step 3 by selecting the simulator folder.

  6. 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.

Build standalone executable

If you would prefer to not run in Unity Editor and build the standalone executable yourself, follow the instructions here.

Simulator Instructions

  1. After starting the simulator, you should see the main menu. Currently, only Free Roaming mode is supported. Click "Free Roaming."
  2. 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."
  3. The vehicle/robot should spawn inside the map environment that was selected. Read here for an explanation of all current keyboard shortcuts and controls.
  4. Follow the guides on our respective Autoware and Apollo repositories for instructions on running the platforms with the simulator.

Guide to simulator functionality

Look here for a guide to currently available functionality and keyboard shortcuts for using the simulator.

Contact

Please feel free to provide feedback or ask questions by creating a Github issue. For inquiries about collaboration, please email us at contact@lgsvlsimulator.com.

Copyright and License

Copyright (c) 2018 LG Electronics, Inc.

This software contains code licensed as described in LICENSE.

About

Deprecated version of the LGSVL Simulator. Current version can be found https://github.com/lgsvl/simulator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 85.3%
  • Mathematica 6.8%
  • Python 3.2%
  • HLSL 2.6%
  • ShaderLab 2.0%
  • C 0.1%