Entradas

Mostrando entradas de octubre, 2022

Práctica 1: Vacuum Cleaner

Imagen
Welcome! Figure 1. Roomba vacuum cleaner Goal: In this exercise we are going to implement the logic of a navigation algorithm for an autonomous vacuum, where the main objective will be to cover the largest area of a house using the programmed algorithm. Explanation: In the first place I have created the function parse_laser_data(), which is attached to the statement of the practice, and whose main functionality is to read the data that the laser collects and with which we will play when deciding the next behavior of our vacuum cleaner. The operation of my vacuum cleaner is based on a state machine, which consists of 4 states: - State 0 (spiral): This state is only performed once in execution, the vacuum cleaner performs a spiral to cover the entire possible area around its initial position, until it detects an obstacle (this is done by reading the values from the front of the laser), and once it detects the obstacle it goes to the next state. - State 1 (reverse): The vacuum cleaner goe...