GithubHelp home page GithubHelp logo

lyp19 / nuscenes-to-osm-exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gdlg/nuscenes-to-osm-exporter

0.0 0.0 0.0 11 KB

NuScenes Map to OpenStreetMap Exporter

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

nuscenes-to-osm-exporter's Introduction

NuScenes Map to OpenStreetMap Exporter

This tool converts the maps of the NuScenes dataset to the OpenStreetMap file format (.osm) which can be used with JOSM. This is useful to interactively visualise and explore the map data.

Exporting the maps

The tool is based on the NuScenes devkit and the UTM library. Install the requirements using pip:

pip install -r requirements.txt

Converting NuScenes maps to the OpenStreetMap format. The tool will create a .osm file in the current directory for each map.

python nuscenes_map_to_osm_exporter.py ~/data/nuscenes

Converting NuScenes annotations to the OpenStreetMap format. The tool will create a .osm file in the current directory for each scene.

python nuscenes_to_osm_exporter.py ~/data/nuscenes v1.0-trainval

Converting NuScenes annotations to GPX format. The tool will create a .gpx file in the current directory for each scene. The script above is more useful than this one because it exports all the metadata associated with the annotations rather this one only export the tracks themselves.

python nuscenes_to_gpx_exporter.py ~/data/nuscenes v1.0-trainval

Visualising the data

The .osm files can be viewed in JOSM.

To render the map properly, you must add the provided nuscenes.mapcss to JOSM Paint Styles. To do so, open JOSM, go into the menu Edit/Preferences. Under the tab Map Settings (third from the top), go into the subtab Map Paint Styles then add the nuscenes.mapcss custom style by clicking on the + icon on the right and selecting the file.

Aerial photography can also be overlaid by using the Imagery menu. The NuScenes maps were experimentally aligned with the imagery data and the alignment is not perfect. The coordinates that are used to generate the map are hard-coded in the file utils/__init__.py.

nuscenes-to-osm-exporter's People

Contributors

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