10.1 Example description of a scenario

The file for the sample scenario used in this tutorial is named SimpleOvertake.xosc. The file is located in the examples directory.

This scenario is written for a country with right-hand traffic, but can easily be adapted to left-hand traffic.

Vehicle 2 and Vehicle 1 are located on the same lane on SampleDatabase.xodr 58 meters apart, with Vehicle 2 being in front of Vehicle 1. Vehicle 1, having the larger speed, catches up with Vehicle 2 , and needs to change to the left lane. After some time, when it has overtaken Vehicle 2, it moves back to its previous lane, ending in front of Vehicle 2.

image
Figure 48. Initial positions of vehicles (Vehicle is shortened to v in this graphic)