wh200720041 / ssl_slam2

SSL_SLAM2: Lightweight 3-D Localization and Mapping for Solid-State LiDAR (mapping and localization separated) ICRA 2021
GNU General Public License v3.0
392 stars 71 forks source link

ERROR: service [/save_map] #17

Open BellosC opened 2 years ago

BellosC commented 2 years ago

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

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

[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

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

mertyavuz41 commented 2 years ago

same here

mertyavuz41 commented 2 years ago

@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.

araujokth commented 1 year ago

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