#!/usr/bin/env bash # 显示 / 校验主站点配置。 # 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:" echo " paths.yolo_weights: \"/home/cc/ros2/models/yolo/detect_best_0.onnx\" # 写 onnx 或 pt 均可" echo " 改完确认标签和 engine 都对:" echo " bash ~/ros2/scripts/weights.sh list" echo " bash ~/ros2/scripts/weights.sh doctor --check-engines" echo echo "(旧做法: 用 models/yolo/active.pt 符号链接切换模型 —— 已废弃," echo " 没有任何节点会读它。请直接改 paths.yolo_weights。)"