maliput / maliput_malidrive

Open-source ready OpenDrive backend for Maliput
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Improves throw message: Print range of tolerances evaluated #157

Closed francocipollone closed 3 years ago

francocipollone commented 3 years ago

Related to https://github.com/ToyotaResearchInstitute/maliput_malidrive/issues/156

New message example:

terminate called after throwing an instance of 'maliput::common::assertion_error'
  what():  road_geometry_builder.cc:operator():392: None of the tolerances(25) worked to build a RoadGeometry from xodr_files/leghorn.xodr.
    Used linear tolerances are in the range [0.050000, 0.492487] with an increasing step of 10% per iteration
    Used angular tolerances are in the range [0.010000, 0.098497] with an increasing step of 10% per iteration
Aborted (core dumped)