Giter VIP home page Giter VIP logo

parse-and-visualize-xodr's Introduction

This is a project for parsing opendrive .xodr file and visualization using matplotlib.

Introductions

  • /opendriveparser: Copied from https://github.com/fiefdx/pyopendriveparser for parsing opendrive .xodr files. Note that some bugs are fixed in this work.
  • /data: Consisting input demo data of .xodr file.
  • parse_and_visualize.py: Parsing and visualizing the .xodr file.

Installation

Please create virtual environment and install required packages.

conda create -n opendrive python=3.8
conda activate opendrive
pip install lxml>=5.1.0
pip install matplotlib
pip install https://github.com/stefan-urban/pyeulerspiral/archive/master.zip

Parameters and Run

The parameters are given at the start of “parse_and_visualize.py” including:

  • XODR_FILE: input file path.
  • XXXX_COLOR: colors of different lane types.
  • STEP: Sample steps while ploting.

Directly run the main file:

python parse_and_visualize.py

The results of visualization of the road network will be saved in “/data/” directory.

If you find this demo useful, please consider star our work!

parse-and-visualize-xodr's People

Contributors

skx6 avatar

Stargazers

Yonghao Yu avatar  avatar  avatar  avatar Yizhou Xu avatar  avatar

Watchers

 avatar

Forkers

weixiaopassking

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.