Maps
Map management and mapping API endpoints
📄️ Validate Map Name
Checks whether a given map name is already in use (case-insensitive) by querying the database.
📄️ Get All Map Metadata
Retrieve all map metadata from the database, sorted by most recently updated. Supports offset-based pagination (page + limit).
📄️ Get Active Map
Retrieve the active map along with its asset metadata
📄️ Set Active Map
Sets the specified map as the currently active map via ROS service call.
📄️ Set Map
Sets the specified map via ROS service call. Verifies the map exists in the database before calling the service.
📄️ Save Map
Saves the current map with the given filename via ROS service call.
📄️ Delete Map
Deletes the specified map via ROS service call.
📄️ Add Map
Adds a new map via ROS service call. Verifies the map name does not already exist in the database before calling the service.
📄️ Update Map
Updates an existing map via ROS service call. Verifies the map exists in the database before calling the service.
📄️ Get Map ROS Info
Returns the RosMapInfo (resolution, width, height, origin) for a stored map. Used by the Map Editor (source=exist) to seed mapMetadata without a ROS topic read.
📄️ Get Map GridFS Asset
Streams the real pcd/png bytes for a map from GridFS (bucket `map_assets`), resolving pcdFileId/pngFileId off the map document — mirrors mission_control_ui's /api/map-cloud/:name?format=pcd|png. Used by the 3D map editor (source=exist3d) to fetch the point cloud, and by the 2D flow for GridFS-synced PNGs.
📄️ Export Map
Read-only export of a non-active map as a ZIP in ROS map_server format: `maps.yaml` (image, mode, resolution, origin [x, y, yaw], negate, thresholds) + `map.pgm` (binary P5, map_saver values 254/0/205), plus `map.pcd` (stored PCL binary_compressed) for 3D maps. Any 2D or 3D map, whatever the robot's mapping type. Reads the `maps` doc + `map_assets` GridFS directly; no ROS calls.
📄️ Get Map by Name
Retrieve a map document along with its asset metadata by map name
📄️ Start Mapping (SLAM)
Calls the ROS service /launch_controller/slam/start to begin SLAM-based map creation.
📄️ Stop Mapping (Navigation)
Calls the ROS service /launch_controller/navigation/start to stop SLAM and transition to navigation mode.
📄️ Capture Final Map Point Cloud
Triggers the ROS /get_final_map service (only succeeds while SLAM is still running), then reads the freshly-published cloud off /map_points. Call this before stopping mapping so the cloud can be saved via /add_map even after SLAM has since been stopped.
📄️ Clear Mapping Session Lock
Force-clears the Redis mapping session lock and broadcasts an idle status to clients. Intended for admins/developers to recover from an orphaned mapping session.
📄️ Get Mapping Session Info
Returns the map name and user of the mapping session started from this UI, or null when none is recorded. Outlives the heartbeat lock; cleared only on stop or force-clear.