File Exchange

image thumbnail

ebertolazzi/Clothoi​ds

version 2.0.1 (16 MB) by Enrico Bertolazzi
G1 and G2 fitting with clothoids, circle and biarc

14 Downloads

Updated 18 Oct 2020

View Version History

GitHub view license on GitHub

### G1 and G2 fitting with clothoids, spline of clothods, circle arc and biarc
**by Enrico Bertolazzi and Marco Frego**

for the documentation see `manual.md`

This is the NEW Object Oriented (OO) version of the Clothoids library.
For the old NON OO interface look at the branch `old_interface`.

**Authors:**

Enrico Bertolazzi and Marco Frego
Department of Industrial Engineering
University of Trento
enrico.bertolazzi@unitn.it
m.fregox@gmail.com

Cite As

Enrico Bertolazzi (2020). ebertolazzi/Clothoids (https://github.com/ebertolazzi/Clothoids), GitHub. Retrieved .

Comments and Ratings (9)

Alessandro Antonucci

Enrico Bertolazzi

The software is developed on OSX. To compile the MEX library execute CompileLib.m on the directory matlab. To compile the c++ lib (to be used in c++) there is a makefile (that work on linux and OSX) and a CMakeLists.txt to be used with cmake on all the platforms.

Has anyone compiled this with macOS on a macbookair? Can the instructions be posted here please, thanks.

Cagatay Cebeci

Thank you for sharing and following people's requests. Definitely a good practice! I hope to benefit from this work for my research.

izzy schall

I found a solution by changing line 398 in Triangle2D.cc to include parentheses :

return (std::max)(d1,(std::max)(d2,d3)) ;

(solution found here:
https://stackoverflow.com/questions/5004858/stdmin-gives-error)

Enrico Bertolazzi

if you are compiling on windows with visual studio compiler probably the error is due to some version of the compiler which defined max and min as macros. I added a workaround for that in the last version of the library.

Valerio Magnago

Enrico Bertolazzi

It is correct, in the latest version I added the header inclusion. The error is due to that fact I develop mainly on OSX which include headers for STL in a slight different way.

Tim Pfitzer

Hi,I tried to compile your Lib. There is an error in Triangle2D I think you forgot to include the Header <algorithm>. After I fixed that i was able to compile it in Matlab.

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: Polynomialspirals

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

matlab

tests-matlab

toolbox

tests-matlab

toolbox/doc