The Minkowski difference is calculated for a pair of 2D polygons. The algorithm from
Lozano-Perez [Lozano-Perez, 1983] is used which has a complexity of O(m + n) where
m and n are the number of vertices of the robot and obstacle, respectively.
Minkowski differences are used in motion planning for a robot among obstacles. It is used
for the computation of the configuration space, which is the set of all admissible positions
of the robot.
$ make
$ ./minkowski <num-of-robot-vertices> <num-of-obstacle-vertices>
$ ./minkowski -f <csv-input-file>
For rendering images, please install SFML library.
$ sudo apt-get install libsfml-dev
$ ./minkowski 4 6
$ ./minkowski 5 5
$ ./minkowski -f inputDataExample.txt