Ensure you have cloned and install imagerec
package from
this repo.
In the root folder containing setup.py
file, run
pip install -r requirements.txt
pip install -e .
The flag -e
is short for --editable, and .
refers to the current working
directory, so together, it means to install the current directory
in editable mode. This will also install any dependencies declared with install_requires
Note: Before running the main file, make sure to remove the images in "images" folder.
python -m mdpalgo
Note: Before running the main file, make sure to remove the images in "images" folder.
python -m fastestalgo
The arena:
The robot:
The "obstacle" model:
This repo is based upon a previous repo: https://github.com/CZ3004-Group-12/mdp-algorithm working on the same project in the past. Having to keep the developments private during CZ3004 course, we did not fork the repo, but we tried to keep the commit history intact.
We have contributed significantly, especially on the following aspects:
Fix the path planning algorithm: the A star algorithm in the previous repo did not immediately generate a sequence of feasible movements, but an idealised path for a holonomic robot, and converted to the actual path using a lot of hardcoding. Lots of bugs in the actual path, and the car sometimes crashed into the obstacle. We have completely revamped the A start path planning algorithm to immediately generate a sequence of feasible movements, with no collision in the simulator.
Develop our own approach for week 9 task. The algorithm side simply handles communication with RPi and calls the image recognition and leaves the planning to the RPi and STM.
Repackage the entire repo as two packages that are easy to install and deploy.
We also added a lot of unit tests and fixed numerous bugs in the process.