To improve the movements specially turn left or turn right we've replaced the pivot with a spherical object.
In terms of code (algorithms) we've created a matrix to represents a table (6x6), each position of this matrix has a simple structure with the following fields:
- border_top (true/false);
- border_right (true/false);
- border_bottom (true/false);
- border_left (true/false);
- weight (int values), this field represents the number of times which the robot has been in specific cell;
Below you can see a workflow which describe a behaviour that must be when it's in some cell.




Sem comentários:
Enviar um comentário