domingo, 16 de dezembro de 2012

Create random movements

02 Dec 2012 - The goal was to continue improving the robot movements. First of all we adapted the algorithm to generate random movements (sometime it moves to right sometimes it moves to left).


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