换台电脑克隆后启动失败,是因为 site 和启动脚本写死了 /home/cc/ros2。仓库内路径改成相对仓库根,加载时再展开;缺 install 时先说明要编译,而不是 source 一个不存在的文件。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
arm_dev
2026-10-15 10:51:24 +08:00
parent ab73399426
commit 3c86441fb0
25 changed files with 254 additions and 91 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ python3 "${ROOT}/scripts/lib/export_site_env.py" --print ${ROBOT_SN:+--sn "$ROBO
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 " paths.yolo_weights: \"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"