Giter VIP home page Giter VIP logo

auto_vehicle_simulator's Introduction

autoVSimulator

This is a simulator for autonomous driving.

To run the demo,

python visualize_ngsim.py
python first_person_view.py
python flash_view.py

To start in Windows:

Install 32-bit Anaconda2 and set its build-in Python as the default Python.

Install Panda3D and set the Anaconda Python as the connected Python: (1)Uncheck the python2.7 during installing (2)Simply create a "panda.pth" file inside your copy of Python, containing the path of the panda directory and the bin directory within it on separate lines (for example C:\Program Files\Panda3D-1.2.3 and C:\Program Files\Panda3D-1.2.3\bin).

Install numpy(using command): pip install numpy

Install cvxopt(using command): conda install -c https://conda.anaconda.org/omnia cvxopt


Visualization of intention prediction

Watch the video


Based on the simulator developed by Jianyu Chen and Changliu Liu in Berkeley MSC Lab in 2016.

Multicar

This "multicar" branch is an application built on Auto Vehicle Simulator, which demonstrates the Multi-car Convex Feasible Set algorithm. There are 2 built-in scenarios for display, a 2-car overtake and a crowded 9-car plot.

Environment Setup with Anaconda

conda create -n avsim python=3.6
conda activate avsim
pip install numpy scipy matplotlib pandas sympy nose
pip install panda3d==1.10.3
conda install -c https://conda.anaconda.org/omnia cvxopt
pip install cvxpy

How to Run the Demo

  1. Planning mode Configure self.scenario in main.py for different scenarios, leave self.replayFile as None for this mode. Use keyboard "c" to triger lane changing.
  2. Replay mode Configure self.replayFile to a trajectories log file. The simulator will use the saved trajectories without live planning.

Scenarios

  1. 2-car overtake

logged filename: "traj_log_2.npz"

  1. crowded 9-car

logged filename: "traj_log_9.npz"

References

Huang, J., and Liu, C., 2020 "Multi-car Convex Feasible Set Algorithm in Trajectory Planning"

auto_vehicle_simulator's People

Contributors

changliuliu avatar hackmd-deploy avatar valkyrjal avatar wei-tianhao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.