This small collection of routines shall illustrate the computation of Euler spirals as they are to be used in OpenDRIVE applications.
The methods have been realized using the CEPHES library
and do neither constitute the only nor the exclusive way of implementing spirals for OpenDRIVE applications. Their sole purpose is to facilitate the interpretation of OpenDRIVE spiral data.
All software is provided "AS IS".
Building on Unix
With CMake as plattform-independent build tool odrSpiral can be configured for various native build environments. An exemplary configuration for Make under Unix:
cd odrSpiral mkdir build cd build cmake ..
To build the project afterwards run
If everything went fine you will find
- the resulting static library in the
lib/folder of the project root and
odrSpiralDemoexecutable in the
Running it will result in a table of x/y values for a sample spiral.