Files
lms-fe/resources/nav2-dev-image/docker-entrypoint.sh
T
2026-08-03 14:04:19 +09:00

13 lines
345 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source "/opt/ros/${ROS_DISTRO}/setup.bash"
# A prior colcon build takes precedence over apt packages when the workspace
# is mounted. This makes source edits immediately available to ROS commands.
if [[ -f "${NAV2_WORKSPACE}/install/setup.bash" ]]; then
source "${NAV2_WORKSPACE}/install/setup.bash"
fi
exec "$@"