### 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
Enrico Bertolazzi (2021). ebertolazzi/Clothoids (https://github.com/ebertolazzi/Clothoids), GitHub. Retrieved .
Inspired: Polynomialspirals
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
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
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?
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.
Thank you for sharing and following people's requests. Definitely a good practice! I hope to benefit from this work for my research.
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)
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.
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.
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.