The goal is to implement the method required to use circle as obstacles on the map (see here). You can check #3 for more details (implementation of rectangular obstacle).
For a bit more background, the map will be implemented as a quadtree (see the wikipedia page for more info). Therefore, the map will be splitted in quadrant of diffrerent sizes with a minimal size that will be fixed (for example min size = 1cm). A quadrant is split iff the minimum size is not reached and it overlaps with an obstacle. Here is an example of a quadtree map with two obstacles (in black):
You can see that some quadrants have been cut in smaller pieces to accommodate the size of the obstacle. That's basically the gist of the field mapping. As we will certainly have a circular obstacles on the field of the eurobot, this implementation is highly needed.
The goal is to implement the method required to use circle as obstacles on the map (see here). You can check #3 for more details (implementation of rectangular obstacle).
For a bit more background, the map will be implemented as a quadtree (see the wikipedia page for more info). Therefore, the map will be splitted in quadrant of diffrerent sizes with a minimal size that will be fixed (for example min size = 1cm). A quadrant is split iff the minimum size is not reached and it overlaps with an obstacle. Here is an example of a quadtree map with two obstacles (in black):
You can see that some quadrants have been cut in smaller pieces to accommodate the size of the obstacle. That's basically the gist of the field mapping. As we will certainly have a circular obstacles on the field of the eurobot, this implementation is highly needed.