GithubHelp home page GithubHelp logo

sebastianloos / apolloopendriveplugin Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 6.0 1.08 MB

A plugin for JOSM to display Apollo OpenDRIVE data

License: GNU General Public License v3.0

Java 100.00%
apollo-auto josm josm-plugin opendrive osm

apolloopendriveplugin's Introduction

JOSM Apollo OpenDRIVE Plugin

This is a plugin for the JOSM editor for displaying and importing Apollo OpenDRIVE data. The conversion tool to create an Apollo OpenDRIVE file can be found here. Apollo Auto is an open source autonomous driving software platform developed by Baidu.

Compiling the source code

This section can be skipped if you use a compiled binary from the release section.
To compile the source code, the build script ("build.xml") contained within the repository can be used. The script requires the plugin environment from the official repository and a compiled JOSM binary, which can either be downloaded from the official website or compiled from the JOSM source code.

pluginenv

The plugin source code then needs to be placed in the "plugins" folder of the environment.

pluginfolder

The commands to run the script are the same as seen in the official development guide:

ant clean
ant dist

This will create several files in the "dist" folder of the environment root path, including the apolloopendrive.jar file, which contains the compiled plugin.

Installing the plugin

The .jar file of the plugin must be placed in the plugin folder of JOSM. On Windows, this folder is located in the AppData folder of the current user. It can be accessed by opening the following path in the file explorer:

%appdata%\JOSM\plugins
pluginpath

After placing the plugin in the folder, JOSM is ready to be launched.
It is important to launch JOSM with the Java version 8. On Java version 9 or newer, the plugin will crash upon loading a file.
If your system has a different default Java version than version 8, launch the .jar file of JOSM via the command line to manually select the correct Java binary. The JOSM binary is located in the following folder:

%appdata%\..\Local\JOSM\app

Below is an example command to launch JOSM with a Java binary of version 1.8.0.211:

'C:\Program Files\Java\jdk1.8.0_211\bin\java.exe' -jar .\josm-custom.jar

When it finishes loading, open the settings by clicking on the icon in the top menu:

josmsettingsicon

In the screen that has now opened, select the "Plugins" tab and enable the "apolloopendrive" plugin in the list of plugins on the right.

josmsettings

Using the plugin

When the plugin is enabled click on the "Open file" icon in the top left.

openfile

Import Apollo OpenDRIVE data

You can now select "Apollo OpenDRIVE file" in the file type dropdown menu and open any Apollo OpenDRIVE file. Larger files may take a few minutes to import. A demo file containing a small area of road data can be found in the demo folder of the repository.

openfilemenu

After loading the file, the geometries contained in the Apollo OpenDRIVE file should be visible.

josm

Export Apollo OpenDRIVE data

This feature is no yet completed.

A planned feature currently under development is the the export of loaded OSM (and other) data into the Apollo OpenDRIVE format using the Apollo OpenDRIVE conversion tool.

apolloopendriveplugin's People

Contributors

sebastianloos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

apolloopendriveplugin's Issues

compile error

because of wrong jar path in .classpth file

<?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"> <attributes> <attribute name="module" value="true"/> </attributes> </classpathentry> <classpathentry kind="lib" path="C:/Users/Hayuki/OneDrive/Masterarbeit/josm-tested.jar"/> <classpathentry kind="lib" path="C:/Users/Hayuki/OneDrive/Masterarbeit/jaxb.jar"/> <classpathentry kind="lib" path="C:/Users/Hayuki/OneDrive/Masterarbeit/apolloconverterlib-0.2.jar"/> <classpathentry kind="output" path="bin"/> </classpath>

cant find 3 jars in absolute path

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.