Skip to main content

SaveMap

Service type: fourier_msgs/srv/SaveMap

Service name: /slam/save_map

Description

Save the current 3D point-cloud map. This service is available in mapping mode.

Request

FieldTypeDescription
map_idstringMap identifier or destination path. An absolute path starts with /; a relative value is saved under ./data/{map_id}/. Missing directories are created automatically.

Response

FieldTypeDescription
responseuint32Result code; see the table below.

Result Codes

CodeDescription
0Saved successfully.
1A save operation is already running.
2Image-rendering reset failed.
3The map is empty and cannot be saved.
4Map-expansion localization failed.

Saved Data

FileFormatDescription
global.pcdPCL binary-compressed3D point-cloud map.
*.binBinaryOptional tiled map data.

Notes

  • This service is available only in mapping mode.
  • An existing destination directory is removed and recreated.
  • Save the 2D map separately with the map-saving utility.