ssl_slam2 icon indicating copy to clipboard operation
ssl_slam2 copied to clipboard

ERROR: service [/save_map]

Open BellosC opened this issue 3 years ago • 3 comments

Hello, i have a problem with the command "rosservice call /save map".

  • i am following the "4.3 Map Building" procedure, but when i use the "rosservice call /save map" command in my second terminal tab, i get the following error:

ERROR: service [/save_map] responded with an error: : [pcl::PCDWriter::writeASCII] Could not open file for writing!

  • also in the first terminal tab that i am using the command "roslaunch ssl_slam2 ssl_slam2_mapping.launch" i get the following error for a moment:

[ERROR] [1642414934.582664157, 1642414849.721206964]: Exception thrown while processing service call: : [pcl::PCDWriter::writeASCII] Could not open file for writing!

Picture of my terminal:

error

  • i solved it by typing "rosrun pcl_ros pointcloud_to_pcd input:=/map" instead of "rosservice call /save map" but i would like to check if i get better results with the loop closure that you describe.

Could you help me? Thank you in advance for your time.

BellosC avatar Jan 17 '22 10:01 BellosC

same here

mertyavuz41 avatar May 29 '22 10:05 mertyavuz41

@BellosC , call service as mentioned instructions after then type the 'rosrun pcl_ros pointcloud_to_pcd input:=/map' in another terminal. In this way, map will be better.

Update: You may miss to create map folder inside the repository or you can change the following parameter which located mapping launch;

the pcl search for the map folder but it cannot found, hence the problem caused.

mertyavuz41 avatar May 29 '22 10:05 mertyavuz41

This problem happens because you do not have a map folder under ssl2_slam. If you create the folder it works

araujokth avatar Mar 24 '23 13:03 araujokth