maliput / maliput_malidrive

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

Adds spiral geometry parsing capabilities #261

Closed francocipollone closed 8 months ago

francocipollone commented 8 months ago

🎉 New feature

Related to #260

Summary

From OpenDRIVE Format Specification 1.5:

This record describes a spiral as part of the road’s reference line. For this type of spiral, the curvature
change between start and end of the element is linear.

In order to provide consistency between spiral evaluations of various implementations, users are
highly recommended to use identical algorithms, or, at least, algorithms with reasonable accuracy
within the applicable range (i.e. curvature, length of spiral etc.).

The theory of clothoids is described (for example) at
http://en.wikipedia.org/wiki/Euler_spiral
A library for computing clothoids can be downloaded at
http://www.opendrive.org/downloads/spiral.zip

image

Test it!

After building and sourcing.

xodr_query src/maliput_malidrive/resources/SpiralRoad.xodr GetGeometries 1

Checklist