Monte Carlo Localization Algorithm
You will be able to observe the MCL
in action through the generated images.
Make sure you have opencv installed locally
$ cd /home/workspace/
$ git clone https://github.com/Ch3ck/MCL.git
$ cd MCL/
$ rm -rf Images/*
$ g++ mcl.cpp -o mcl -std=c++11 -I/usr/include/python3.7 -lpython3.7 # or make
$ ./mcl
Wait for the program to iterate 50
times.
- "/usr/local/include/numpy/ndarrayobject.h:11:10: fatal error: 'Python.h' file not found #include <Python.h>"
Fix: export CFLAGS="-I /usr/local/lib/python3.7/site-packages/numpy/core/include $CFLAGS"
- fatal error: 'Python.h'
Fix: <Python/Python.h>
After running the program, 50
images will be generated in the Images
folder.