OpenDRIVE: Introduction

What is OpenDRIVE

Truevision provides support for importing & describing road networks via OpenDRIVE. OpenDRIVE® files are designed to describe entire road networks with respect to all data belonging to the road environment. They do not describe the entities acting on or interacting with the road.

The OpenDRIVE file format provides the following features:

Road Layout

The following figure depicts the principles of road layout:

Note: Support for OpenDRIVE version 1.4 & above is provided. Some of the OpenDRIVE tags are not supported.

Hello Road

In the section, we'll look to create our very first simple road using OpenDRIVE. You can create OpenDRIVE in two ways

The ScenarioDesigner is a much easier way to design roads as you'll not need to know anythign about OpenDRIVE and you can just visually create road by clicking and changing and few properties etc.

Manually writing the XML file means you'll need to understand all the tags and element in OpenDRIVE, which can be quite a long excercise depending on how deeply you want to understand the format. Instead of covering everything, we'll be covering some of the most important elements which will improve your speed to iterate without spending too much time.

Using Designer

Follow the screenshots below to create a simple road with muliple lanes.

Open Designer

Create Road

Add Lanes

Modify Lane Type

Modify Lane Width

Add Roadmarks

Modify Roadmarks

Export File

Now, you can just import the file in the simulator with import command