maliput / maliput_malidrive

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

SpiralGroundCurve with tests. #276

Closed agalbachicar closed 5 months ago

agalbachicar commented 5 months ago

🎉 New feature

Part of #265

Summary

Provides a spiral based GroundCurve. This implementation uses the functions that maliput::math brings in that belong to the Cephes library. On top of that, it adds some customization that the libOpenDrive library incorporates as ad-hoc customizations.

The result is a tested GroundCurve implementation that explores different conditions of the input parameters such that multiple cases are evaluated shuffling input curvatures, initial pose and arc length of the spiral.

Due to numerical error, tolerances are yet to be constrained for the inverse and the brute force integral comparison.

Test it

Via unit tests.

Checklist

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

agalbachicar commented 5 months ago

I will remove this PR in favor of #277 which has all the changes in and it has been already reviewed.