docs: add local OmniSocket hub deployment

This commit is contained in:
LengedZhao
2026-08-10 13:47:51 +08:00
parent f660de6d74
commit 8e871d5051
5 changed files with 373 additions and 31 deletions

View File

@@ -11,12 +11,18 @@ EAI xTELE tcp://127.0.0.1:5003(原始帧)
-> tg3_local_teleop(直接 OmniSocket Session)
```
不走公网时仍保留这条完整 sender/receiver 链路,只把 Hub 放到 EAI 本机:sender 的
`--server` 使用 `127.0.0.1:14049`,机器人 `omnisocket_server` 使用机器人可达的 EAI
局域网地址(当前为 `192.168.5.14:14049`),双方 Peer ID 不变。EAI 运行
`tg3-omnisocket-hub.service`,其 `kcpserver` 监听 UDP `0.0.0.0:14049`。
完整构建、切换、验证和回公网步骤见迁移部署指南第 6 节。纯 ZMQ 直连不是推荐主链路。
Peer ID:
- 工控机:`tg3-009027fa8190-iarm`
- 机器人:`tg3-009027fa8190-robot`
EAI 上仅保留 `omnisocket_xtele_sender.py`。它以 5003 最新帧为基础,保留双臂、
EAI 的业务发送程序是 `omnisocket_xtele_sender.py`。它以 5003 最新帧为基础,保留双臂、
Z+C 按键及诊断字段;若 5001 的双侧 `hand.position` 在 250 ms 内有效,则合并厂家
xTELE 已处理的标量或六维 BrainCoRevo2 目标。5002 的界面事件和腰、头、腿、行走、
底盘命令不会进入机器人双臂桥。

View File

@@ -0,0 +1,14 @@
[Unit]
Description=TG3 local OmniSocket KCP hub
[Service]
Type=simple
WorkingDirectory=/home/eai/OmniSocketGo
ExecStart=/home/eai/OmniSocketGo/bin/kcpserver -mode hub -listen 0.0.0.0:14049
Restart=always
RestartSec=1
KillSignal=SIGTERM
TimeoutStopSec=5
[Install]
WantedBy=default.target