Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds spiral geometry parsing capabilities #261

Merged
merged 3 commits into from Jan 4, 2024

Conversation

francocipollone
Copy link
Collaborator

@francocipollone francocipollone commented Jan 2, 2024

🎉 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

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if it affects the public API)

Signed-off-by: Franco Cipollone <franco.c@ekumenlabs.com>
Signed-off-by: Franco Cipollone <franco.c@ekumenlabs.com>
@francocipollone francocipollone force-pushed the francocipollone/parse_spiral_geometries branch from c72050e to 531f764 Compare January 2, 2024 18:39
@francocipollone francocipollone changed the title Adds Spiral geometry type to XODR Geometry Adds spiral geometry parsing capabilities Jan 2, 2024
Copy link
Collaborator

@agalbachicar agalbachicar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo the required test coverage.

test/regression/xodr/geometry_test.cc Show resolved Hide resolved
test/regression/xodr/parser_test.cc Show resolved Hide resolved
Signed-off-by: Franco Cipollone <franco.c@ekumenlabs.com>
Copy link
Collaborator

@agalbachicar agalbachicar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@agalbachicar agalbachicar merged commit a46cc2f into main Jan 4, 2024
4 checks passed
@agalbachicar agalbachicar deleted the francocipollone/parse_spiral_geometries branch January 4, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants