interactive_slam icon indicating copy to clipboard operation
interactive_slam copied to clipboard

how to merge two map generated by hdl graph slam?

Open liuyf5231 opened this issue 5 years ago • 2 comments

Hi koide3, I generated two map by hdl graph slam, I want to know how to merge them? These two map's init point is 0,0,0. if I merge them,the second map will go to the 0,0,0 point of the first map.

liuyf5231 avatar Dec 02 '19 12:12 liuyf5231

Hi @liuyf5231 , This example explains how to merge multiple maps. If you have any further questions, let me know. https://github.com/SMRT-AIST/interactive_slam/wiki/Example3#merge

koide3 avatar Dec 03 '19 01:12 koide3

Hi @koide3, I have the same problem. I created two maps using hdl_graph_slam, then I opened them in interactive_slam. Since they both started from zero point, I needed to move one of them, which I did through node estimation. I can visually see the map changing its position. However, the moment I use the optimize() function, the map that I moved goes back to zero point as if I hadn't made any changes at all. And if I try to create an edge between the maps after movements, both of the maps become completely broken. I think the problem lies within the optimize() function, but I just can't figure out where exactly. Maybe you, as a creator, would have any idea about this?

UriyMihailov avatar Nov 30 '21 08:11 UriyMihailov