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

How to Export a Road Profile with Elevation in OpenRoad? #42

Open
Oscar546546 opened this issue Dec 11, 2024 · 3 comments
Open

How to Export a Road Profile with Elevation in OpenRoad? #42

Oscar546546 opened this issue Dec 11, 2024 · 3 comments
Labels
question Further information is requested

Comments

@Oscar546546
Copy link

Hello! I’m working with this extension and need to export a road profile that includes elevation data. Does anyone know the best way to export a road with elevation? Any tools or tips you can recommend?

Looking forward to your insights!
Thanks!!

@johschmitz johschmitz added the question Further information is requested label Dec 11, 2024
@johschmitz
Copy link
Owner

Elevation on the road reference line in longitudinal direction is supported, see the Readme and the tooltips in the statusline to see the shortcuts. Tooling wise it is probably not perfect but feel free to leave some feedback about it in here. The resulting elevation profile is also exported during OpenDRIVE export.

Elevation in lateral direction such as superelevation, shape, etc. is currently not supported. For that you would have to manually edit the XML or use additional/alternative tooling.

@Oscar546546
Copy link
Author

Thanks for your quick response!

This is the test road that I am trying to export from Blender:
image

Nevertheless, when I open the .xodr file the following elevation profile can be seen:

elevationProfile

        <elevation s="0" a="0.0" b="0" c="0" d="0"/>
  </elevationProfile>

The way I created this elevation change in the straight is by deforming the road into the shape of my terrain. Can this be the cause of the export issue?

Many thanks!

@johschmitz
Copy link
Owner

How did you create that road? Did you manually edit the road mesh? It looks like you might have done something like that. If so, that is not supported. Try to visualize the 3D model as well as the underlying OpenDRIVE data in a tool such as esmini to understand this.
What is supported is the add the elevation while drawing the road with the mouse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants