#!/usr/bin/env bash # Show / validate the master site config. # bash ~/ros2/scripts/show_site_config.sh # SITE_CONFIG=/path/to/other.yaml bash ~/ros2/scripts/show_site_config.sh set -eo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # shellcheck disable=SC1091 source "${ROOT}/scripts/env.sh" # shellcheck disable=SC1091 source "${ROOT}/scripts/lib/parse_arm_args.sh" parse_arm_args "$@" python3 "${ROOT}/scripts/lib/export_site_env.py" --print ${ROBOT_SN:+--sn "$ROBOT_SN"} echo echo "Edit: ${SITE_CONFIG:-$ROOT/config/site.yaml}" echo "Switch weights example:" echo " paths.yolo_weights: \"/home/cc/ros2/models/yolo/detect_hc90.pt\"" echo "Or symlink:" echo " ln -sfn detect_hc90.pt ~/ros2/models/yolo/active.pt" echo " # then set paths.yolo_weights to .../active.pt"