You will be able to observe the MCL
in action through the generated images.
Enter the code in the designated section:
//#### DON'T MODIFY ANYTHING ABOVE HERE! ENTER CODE BELOW ####
//TODO: Graph the position of the robot and the particles at each step
$ cd /home/workspace/
$ git clone https://github.com/udacity/RoboND-MCL-Lab
$ cd RoboND-MCL-Lab/
$ rm -rf Images/*
$ g++ main.cpp -o app -std=c++11 -I/usr/include/python3.8 -lpython3.8 -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -lpthread -lm -lutil -ldl
$ g++ solution.cpp -o app_solution -std=c++11 -I/usr/include/python3.8 -lpython3.8 -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -lpthread -lm -lutil -ldl
Before you run the program, make sure the Images
folder is empty!
$ ./app
Wait for the program to iterate 50
times.
After running the program, 50
images will be generated in the Images
folder.