Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Elements in this tab allow the user to load and transform Commonroad scenarios which follow the 2018 or 2020 specifications. The scenario will then be drawn in the MapView of the LCC and obstacles will either be simulated or used to control real vehicles with VehicleCommandTrajectory messages. (TODO:) Planning problems, obstacles etc. defined in the scenario will be used for the simulation and will be communicated to the participants when the simulation is started in Setup.

Image RemovedImage Added

Image Added

The tab also shows some basic information about the set planning problems, allows to transform the problem (and to store that transformation) and gives options on what elements of the problem to show.

Choosing a Scenario

A scenario can be chosen similarly to the script selection in Setup. Either use the Open button or edit the path text field and hit Enter.

...

Info
titleCommonroad Specification

We have not (yet) implemented the whole commonroad specification. Intersections, crossings, traffic lights, traffic signs and signals are currently being ignored and print warnings visible in the LCC Errors TabTraffic lights are not being simulated, but their position is shown, if possible.

We also do not (yet) have a consistent handling of inexact positional values (we currently use the average) and rotations for shapes. The assumed default value for positions is (0,0) (origin).

Your chosen scenario gets centered when it is loaded, w.r.t the middle of the Lab's IPS boundaries. It is not automatically resized, though, so you might not see the whole scenario when you load it.

Transforming the Scenario

You can also transform your scenario:

Image Added

  • Resize it by setting a minimum lane width
  • Translate its x or y coordinates
  • Rotate it around its center
  • Change the time steps

Just enter the desired values in the according text boxes and either hit Enter if you just want to change one value, or set values for multiple fields first before applying them by clicking on Apply transformation. The values in the fields are set to 0.0 again after the transformation was applied.

IMPORTANT: The scenario gets centered when it is first loaded, as the set coordinates might be out of scope. This means, if your scenario only uses coordinates e.g. larger than 200 for x and y values, it should still show up in the MapView. The current centering is not perfect, so you may want to translate it further.

Transformation Profile

You might be interested in keeping the transformation that you set for your scenario. We use a YAML profile to accomplish this. You do not need to access it directly:

Image Added

  • Load saved transformation This button applies transformations that you have stored before to the currently loaded scenario. Important: It does not reset changes made before, so you might want to (Re)Load before pressing this button.
  • Save transformation Save the current transformation in the profile for your current file. Important: Changes in x / y are added, not overwritten. 
  • Reset saved transformation Resets the transformation profile for the current file. Important: This also includes the initial centering that takes place automatically. It is thus advisable to (Re)Load after performing a reset.
Info

Rotation is not being stored. It is the only operation where the order truly matters, and it is also non-linear. It was thus left out for now.

Scenario Preview

If you want to see what the scenario looks like during the simulation, you can preview the movement of the obstacles from within the Commonroad Tab:

Image Added

Toggle Additional Information

We did not want the view to become too cluttered. Thus, parts of the simulation like traffic signs or vehicle information are only drawn on demand. They can be toggled in this part.

Image Added

Error Messages

...