HKUST-Aerial-Robotics / VINS-Fusion

An optimization-based multi-sensor state estimator
GNU General Public License v3.0
3.52k stars 1.39k forks source link

Save and load map #31

Open Changliu52 opened 5 years ago

Changliu52 commented 5 years ago

Thank you sharing the code.

I am wondering if saving and reloading the map is still available in this version, similar to vins-mono?

Thanks

mmp52 commented 4 years ago

hey @Changliu52 , I was also wondering the same thing and I have noticed that one can save the map (pose graph and the features) by entering the letter s and pressing the enter at the terminal in which loop-fusion node is running. Making this closes the node and saves the posegraph. You can see the related code at here

luoxia-wen commented 3 years ago

I entered the letter s and pressing the enter at the terminal " rosrun vins vins_node ~/catkin_ws/src/VINS-Fusion/config/euroc/euroc_stereo_imu_config.yaml ", but nothing happend and no posegraph had been saved.

nirajreginald commented 3 years ago

Did anyone solve this issue?

luoxia-wen commented 3 years ago

I might find a way to solve this issue. It is like that we have to run the loop_fusion node(the "optional") to save the pose_graph and trajectory results. If we only want to get the trajectory result, we just run the loop_fusion(optional) node with other node and the results will be saved in the OUT_PUT_PATH. If we still want to get the pose_graph, we have to enter the letter 's' and press the enter at the terminal in which loop-fusion node is running

HanDaSeul commented 1 year ago

I had struggled with the issue the both vio_loop.csv and pose_graph.txt are saved 0 byte useless file. That had been fixed by running 'vins_estimator', not running 'vins_node'.

20221023lijia commented 3 months ago

I had struggled with the issue the both vio_loop.csv and pose_graph.txt are saved 0 byte useless file. That had been fixed by running 'vins_estimator', not running 'vins_node'.

hello!could you say it in details?what's your command?