mrpt-ros-pkg / mrpt_slam

ROS wrappers for SLAM algorithms in MRPT
http://wiki.ros.org/mrpt_slam
BSD 3-Clause "New" or "Revised" License
114 stars 49 forks source link

Don't save .simplemap when using mrpt_rbpf_slam #37

Closed dohema closed 5 years ago

dohema commented 6 years ago

hello,i have seen that in node destructor,it will try to save a .simplemap file,but i doubt whether the destructor will excute when the node ends,cause you write while(ros::ok()). and in my test,no matter i use ctrl+c to stop the code,or wait for it ends by itself,it doesn't excute the destructor function

jlblancoc commented 6 years ago

Hi, Have you looked inside the .ros folder for the output .simplemap file?

Logrus commented 5 years ago

The non-intuitive behavior of saving *.simplemap is hopefully fixed by this: https://github.com/mrpt-ros-pkg/mrpt_slam/pull/55/commits/86a622ebb8d5b733aaee5f65ef5c66a83f8a8130

Now by default all *.simplemap results will be saved in /tmp folder (please be aware all contents of this folder are purged between computer restarts). User can also specify an absolute path to the desired folder.