Main Content

Left-Hand Drive Export to OpenDRIVE 1.4

Recommended Approach

If the scene being built in RoadRunner is meant to have left-hand driving, the "Driving Side" should be set to "Left." Otherwise, it should be set to "Right."

OpenDRIVE Details

OpenDRIVE® 1.4 does not have a notion of lane travel direction. Instead, it is expected that all drivable lanes on one side of the road go one way and the drivable lanes on the other side of the road go the opposite way.

OpenDRIVE 1.4 does not have a notion of "driving side" (for example, left-hand driving in the UK or Japan). Instead, it is expected that the travel direction be one of these options:

  • Assumed right-side (common)

  • Assumed based on <header> country code (uncommon)

  • Determined using the <incoming> lanes in <junction> entries (uncommon, difficult, and sometimes impossible if no junctions are present)

  • Determined by the initial orientation of placed vehicles in a scenario (most common)

RoadRunner Export

RoadRunner does the following on export for travel direction:

  1. Ensures that lanes are placed on one side or the other of the OpenDRIVE road based on travel direction

  2. Writes out the travel direction of the lane in <userData> for each lane.

During export, lanes traveling in one direction are placed on one side of the OpenDRIVE road (regardless of the lane’s original side of the road in RoadRunner), and the lanes traveling in the opposite direction are placed on the other side of the OpenDRIVE road. The "Driving Side = Left" option provides a hint to the exporter that lanes marked as "Forward" travel direction should (in general) be placed on the "Left" side of the OpenDRIVE road.

Examples

Right-Hand Driving with "Driving Side = Right"

RoadRunner SceneExported OpenDRIVE Scene

The forming lanes are created on either side of the center lane. Travel direction is irrespective of the side of the road.

The lanes are placed on each side (colored red and green for left and right, respectively) to adhere to the OpenDRIVE travel direction restrictions.

Left-Hand Driving with "Driving Side = Left"

RoadRunner SceneExported OpenDRIVE Scene

The forming lanes are created on either side of the center lane. Travel direction is irrespective of the side of the road.

The resulting OpenDRIVE road is the same as the previous OpenDRIVE road (this is expected). However, these roads will not be identical in regards to junctions because the <incoming> lanes will be different for the right vs. left cases.

Left-Hand Driving with "Driving Side = Right" (Not Recommended)

RoadRunner SceneExported OpenDRIVE Scene

The forming lanes are created on either side of the center lane. Travel direction is irrespective of the side of the road.

All lanes are on the same side of the road. The following warnings are printed in the Output panel:

WARNING: Detected non-critical validation issues.