Real-Time Tire/Road Contact Evaluation Library¶
ENVE is a library for real-time tire/road contact evaluation. It is written in C++11 with a MATLAB MEX interface and a SIMULINK S-Function interface. The library is designed to be used in real-time applications, such as vehicle dynamics simulation and control. The library is based on the ACME library, which is a C++11 library for simple 3D geometry processing.
Installation¶
C++¶
Download the library using git:
git clone git@github.com:StoccoDavide/enve.git —recurse-submodules
Notice that if you forget —recurse-submodules
you must download the submdule
ACME next. To compile the library you
can use cmake
:
mkdir build
cd build
cmake ..
make
or rake
:
rake build_submodules
rake build # or simply 'rake'
The compiled library and headers are stores as follows:
`-- lib
|-- include
| |-- enve.hh
| |-- enve_sfun_interface.hh
| |-- enve_sfun_types.hh
| `-- enve
| |-- flat.hxx
| |-- mesh.hxx
| |-- output.hxx
| |-- rib.hxx
| |-- shape.hxx
| |-- shell.hxx
| `-- triangleground.hxx
|-- lib
| `-- libenve_OSTYPE_static.a
`-- dll
`-- libenve_OSTYPE.dylib
where OSTYPE can be linux
, osx
, mingw_x64
, win_x64
depending
on your OS.
MATLAB MEX¶
Download the toolbox and install the toobox as usual. Run CompileENVElib_CMake
on MATLAB Command Window to compile the MATLAB MEX library with cmake
.
SIMULINK S-Function¶
Compile the C++ library as explained above. Then, run CompileENVEsfun
on
MATLAB Command Window to compile the SIMULINK S-Function.
Index¶
Authors C++/MATLAB MEX¶
Authors SIMULINK S-Function¶
License¶
This file is part of the ENVE project
Copyright (c) 2020, Davide Stocco <davide.stocco@unitn.it>, Matteo Larcher
<matteo.larcher@unitn.it> and Enrico Bertolazzi <enrico.bertolazzi@unitn.it>.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.