thnks guys for answers but problem is when i add up distances every step there would be heaps of error,,true rebelguim, thats why i need some algo using my sharp ir , problem is not always there are stuff in front of my ir,, thats when i need to stay under my error mercy,,,,,,
anyone knows how to do this by SLAM? thats would be helpfull