File Exchange

image thumbnail

ebertolazzi/Clothoi​ds

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

13 Downloads

Updated 05 Apr 2021

From GitHub

View Version History

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 (2021). ebertolazzi/Clothoids (https://github.com/ebertolazzi/Clothoids), GitHub. Retrieved .

Comments and Ratings (11)

Enrico Bertolazzi

Its a problem with submodules that the MATLAB distribution do not copy.
I made a new release duplicating files form submodules into toolbox so that next releases do not have this problem.
In the meantime try to download the toolbox directly from the GIT repos: https://github.com/ebertolazzi/Clothoids/releases/tag/2.0.4

Daniele Nanni

Hi, I've followed the instructions. In matlab, I've compiled the file 'ComplileClothoidsLib.m' with the following results:
---------------------------------------------------------
mex -c -largeArrayDims -Isrc -Isrc/Utils -c src/Utils/fmt/format.cc
Error using mex
D:\OneDrive - University of Pisa\Ing Automazione e Robotica\Tesi\Clothoids - Bertolazzi\toolbox\src\Utils\fmt\format.cc
not found; check that you are in the correct current folder, and check the spelling of 'D:\OneDrive - University of
Pisa\Ing Automazione e Robotica\Tesi\Clothoids - Bertolazzi\toolbox\src\Utils\fmt\format.cc'.
Error in CompileClothoidsLib (line 85)
eval(CMD);

What do I have to do?

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!

toolbox

toolbox/lib

toolbox/tests

toolbox/tests_mlx

toolbox/doc

toolbox/tests_mlx