增加环绕侦察场景适配

This commit is contained in:
2026-01-08 15:44:38 +08:00
parent 3eba1f962b
commit 10c5bb5a8a
5441 changed files with 40219 additions and 379695 deletions

View File

@@ -295,10 +295,9 @@ start_services() {
if [ -f '${ros2_setup}' ]; then
source '${ros2_setup}'
fi
# 激活venv虚拟环境
source '${venv_path_expanded}/bin/activate' && \
# 直接使用虚拟环境中的Python启动
cd '${PROJECT_ROOT}/backend_service' && \
uvicorn src.main:app --host 0.0.0.0 --port ${API_PORT}
'${venv_path_expanded}/bin/python' -m uvicorn src.main:app --host 0.0.0.0 --port ${API_PORT}
" > "${LOG_DIR}/fastapi.log" 2>&1 &
local api_pid=$!
echo $api_pid >> "${PID_FILE}"