30 lines
1.6 KiB
Plaintext
30 lines
1.6 KiB
Plaintext
# sanad_api_go2 — copy to .env and fill in.
|
|
|
|
# ── fleet server (REQUIRED — YS Lootah gives you these two) ──────────────────
|
|
SERVER_URL=https://fleet.example.com
|
|
DEVICE_TOKEN=REPLACE_WITH_DEVICE_TOKEN
|
|
|
|
# ── identity ─────────────────────────────────────────────────────────────────
|
|
# This robot's fleet id, sent in the telemetry body as "sn". Set the real Go2 id.
|
|
SN=go2_0000
|
|
|
|
# ── DDS (reading robot state — unitree_go family) ────────────────────────────
|
|
# Interface that sees the Go2's DDS traffic (Jetson/onboard usually eth0).
|
|
DDS_INTERFACE=eth0
|
|
DDS_DOMAIN=0
|
|
# MAC_INTERFACE=eth0
|
|
|
|
# ── position options ─────────────────────────────────────────────────────────
|
|
# none (default) | sportmode (rt/lf/sportmodestate) | rosbridge (/odom).
|
|
GO2_POSITION_SOURCE=none
|
|
ROSBRIDGE_URL=ws://127.0.0.1:9090
|
|
|
|
# ── fault thresholds ─────────────────────────────────────────────────────────
|
|
LOW_SOC=15
|
|
MOTOR_TEMP_MAX=85
|
|
|
|
# ── cadence / transport ──────────────────────────────────────────────────────
|
|
POLL_INTERVAL=2
|
|
VERIFY_TLS=1
|
|
HTTP_TIMEOUT=10
|