Entradas

Mostrando entradas de octubre, 2022

Basic Vacuum Cleaner

Basic Vacuum Cleaner In this practice, we are going to program a basic vacuum cleaner.  The principal difference between a basic vacuum cleaner and an advanced one is that the advanced use a localization algorithm which help the vacuum cleaner to optimize the process, while the basic one just use a movement algorithm trying to clean as mach parts of the house as it can.  In order to solve this exercise, firstly I tried a simple movement algorithm to learn how to use the api of the program. You can see a video here:  see video here In this video we can see how a simple iterative algorithm, which only make the vacuum run till it bump, and then turn the corresponding time, trying to avoid the obstacles, work. The next step is to combine a spiral movement with a right line movement for improving the Vacuum cleaner movement algorithm, being able to reach more house floor parts. For this, we are going to use a state machine with 4 states that we can dive in 2 groups: Displacement states Obst