Refactor ROS startup scripts
This commit is contained in:
@@ -766,7 +766,7 @@ sudo systemctl start arm_server
|
||||
# === AGV 端 ===
|
||||
# 2. 完整启动 ROS2 导航栈 + Flask
|
||||
cd ~/work/smart-inspection
|
||||
./scripts/start_all.sh
|
||||
./scripts/prod-backend.sh
|
||||
```
|
||||
|
||||
### 9.3 部署命令
|
||||
@@ -779,8 +779,8 @@ uv sync --locked
|
||||
# 部署后验证远程文件
|
||||
ssh elephant@192.168.60.80 "grep 'def _lookup_model' /home/elephant/work/smart-inspection/agv_app/utils/mission_executor.py"
|
||||
|
||||
# 重启 Flask
|
||||
ssh elephant@192.168.60.80 'bash -s' < scripts/restart_flask.sh
|
||||
# 重启生产后端
|
||||
ssh elephant@192.168.60.80 'cd ~/work/smart-inspection && ./scripts/prod-backend.sh'
|
||||
|
||||
# 清空 Python 缓存(关键!修改后必须清)
|
||||
ssh elephant@192.168.60.80 "find /home/elephant/work/smart-inspection/agv_app -name '*.pyc' -delete; find /home/elephant/work/smart-inspection/agv_app -name '__pycache__' -type d -exec rm -rf {} +"
|
||||
@@ -864,7 +864,7 @@ agv_app/
|
||||
```
|
||||
|
||||
启动脚本位于仓库顶层 `scripts/`。LiDAR 时间戳修复脚本部署在 AGV 的
|
||||
`/home/elephant/work/scan_fixer/`,由 `scripts/start_all.sh` 调用。
|
||||
`/home/elephant/work/smart-inspection/scan_fixer/`,由 `scripts/prod-backend.sh` 调用。
|
||||
|
||||
## 附录 B:关键依赖
|
||||
|
||||
|
||||
Reference in New Issue
Block a user