This is a solution to the proposed problem by in the Research Track 1 course offered by the Università degli Studi di Genova in 2021-2022 Fall semester by Professor Carmine Recchiuto. The assignment requires the robot to avoid crashing the golden tokens and collecting and leaving behind the silver tokens. The simulator used is a simple, portable robot simulator developed by [Student Robotics] (https://studentrobotics.org). Notice that some of the arenas and the exercises have been modified for the Research Track I course by Professor Carmine Recchiuto.
The simulator requires a Python 2.7 installation, the pygame library, PyPyBox2D, and PyYAML.
Once the dependencies are installed, simply run the test.py
script to test out the simulator.
To run the script in the simulator, use run.py
, passing it the file name.
The solution for the assignment can be found inside the main directory, named solution.py.
When done, you can run the program with:
$ python run.py solution.py
Not to take too much time, here is an explanatory video that you can see both my flowchart and code. Notice that the video is visible to only the ones with the link, so it is only Professor Carmine Recchiuto who can view the video.