Fork of openGJK with minor fixes https://github.com/MattiaMontanari/openGJK/pull/42
 
 
Go to file
Mattia Montanari 9c8a1150a8 Remove old pieces of simplex struct 2022-11-24 00:09:10 +01:00
examples Merge pull request #34 from MattiaMontanari/33-error-using-mex-matlab-under-linux 2022-11-01 09:57:48 +01:00
include/openGJK Remove old pieces of simplex struct 2022-11-24 00:09:10 +01:00
.gitignore Merge branch 'cmakeWin' into dev 2021-07-03 13:33:36 +02:00
CMakeLists.txt Add math library to missing link 2022-08-16 18:30:28 +02:00
LICENSE New sub-algorithm 2020-04-18 12:28:17 +01:00
README.md Remove ctest command from read me file 2022-07-19 15:21:23 +02:00
openGJK.c Postpone computatoin of some hff tests 2022-11-24 00:08:45 +01:00

README.md

Get started

If you have some basic tools installed (git, compiler and cmake) clone this repo:

git clone https://github.com/MattiaMontanari/openGJK.git

followed by these commands:

cmake -E make_directory build
cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release .. 
cmake --build build 
cmake -E chdir build/examples/c ./example_lib_opengjk_ce

If you get no errors, the successfull output is:

Distance between bodies 3.653650.

However, if you do get an error - any error - please file a bug! Support requests are welcome too.

Beyond getting started

With the commands above you have built a demo example tha invokes the openGJK library. The library is statically linked and the distance between two bodies is computed and returned.

To learn how to use this library in your project the best place to start is the demo. Look at main.c and the other examples. In examples/c/CMakeLists.txt you can find how simple is to link using CMake.