Hi,
I am building a program for steering my robot and mapping the environment.
My question is about drawing and storing the map.
What I want:
- 1cm resolution
- 10x10 meter map size (or dynamically expanding if possible)
- rotatable and zoomable
My approach would be to create a 1000x1000 byte array (store not scanned, clear, blocked).
If I want to rotate the map, I need to recalculate position of each pixel.
If I zoom I read only a smaller portion of the array and draw dots with arrayvalue*zoom in size.
I store the map in a csv (all array values). I could also store only scanned points. But as I would need store position, the amount of date would be equal or even more.
Is this the best or at least a good approach? Does someone has tips or a demo project?
Thanks
Robert