#!/bin/bash
set -eo pipefail

source /opt/ros/humble/setup.bash
source /workspaces/vlm_office/install/setup.bash

MAP_BASENAME="${NAV2_MAP_BASENAME:-/data/maps/office_map}"
mkdir -p "$(dirname "$MAP_BASENAME")"

ros2 run nav2_map_server map_saver_cli -f "$MAP_BASENAME"
