Skip to content

idea for 3d clothoid creation. #45

Open
@krcwrhvgyxzqelljes

Description

Hi,

I have a idea worked out how to create a 3d non-planar clothoid using your clothoid library.
I thought maybe it's worth to post it here.

To build a 3d clothoid, it projects 2 clothoids. One on the xy plane, One on the xz plane.
Then it interpolates the first clothoid in t=0-1. Then for the second clothoid the x is found and
the z value is the interpolation solution.

It's not a time optimal solution, but that's no problem for me as the path optimalisation is done offline.
Once we have the 3d polyline, we are master kenobi.

https://github.com/krcwrhvgyxzqelljes/hal-core/blob/de4aab0b6b7ef48bc815cb4f5208e2fbc1c7bcf7/vendor/occ_draw/draw_clothoids.h#L36

The source, you only need the last pvec, as the first 2 are the projections of xy & xz clothoids.
https://github.com/krcwrhvgyxzqelljes/hal-core/blob/de4aab0b6b7ef48bc815cb4f5208e2fbc1c7bcf7/vendor/occ_draw/draw_clothoids.cpp#L436

https://youtu.be/YozKQWVP-Hg

I hope you like this solution? Greetings.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions