Skip to content

A solution to the robot simulation with a laser range sensor in a circuit to avoid walls and obtain points on the way

Notifications You must be signed in to change notification settings

EbruBaglan/RT1-assignment1-solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Research Track 1 - Assignment 1 - Solution

GitHub top language

ScreenShot

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.

Installing and running

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.

How to run the solution to the assignment


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

Solution Explaining Video

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.

Explanation of the flowchart and the code

Flowchart

alt text

About

A solution to the robot simulation with a laser range sensor in a circuit to avoid walls and obtain points on the way

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages