rodrigoqueiroz / geoscenarioserver

9 stars 1 forks source link

use LocalCartesianProjector when available (for co-simulation) #103

Closed mantkiew closed 2 years ago

mantkiew commented 2 years ago

otherwise default to UTMProjector.

The WISE ADS stack (Lanelet2 map server) uses the LocalCartesian projector. When GSS uses the standard UTMProjector, everything is shifted. This PR allows using the LocalCartesian whenever available (that is for people who use our fork of Lanelet2 library, which implements it) and for people using WISE ADS and Sim. For others, the standard UTMProjector is used otherwise.

When you just install the normal ros-noetic-lanelet2 package in Ubuntu and start the server, you'll see a log message:

ScenarioSetup.py:68] Using UTMProjector

But when you have our fork of Lanelet2 sourced, you'll see


ScenarioSetup.py:65] Using LocalCartesianProjector
```.

In either case, the scenarios work the same but LocalCartesian better handles elevations and everybody with WISE ADS/Sim will have it for co-simulation.