"LoMoR" - Sonor Mapping for Robots

I planned to make a robot that would do the same sort of thing as this, but send the data to my computer wirelessly. Would then have a program to use this data to build a map of the environment. Could then do some path finding with the map to tell the robot how to move around objects. I figure the hardest part would be to have the program always know where the robot is, otherwise things would get unsynced and all that.