sim2bot.BridgeInfo¶
BridgeInfo
dataclass
¶
Connection details for a local Sim2Bot bridge.
Attributes:
-
url(str) –JSON control and telemetry WebSocket URL.
-
video_url(str) –Binary camera-frame WebSocket URL.
-
health_url(str) –HTTP health-check URL.
-
host(str) –Parsed bridge host.
-
port(int) –WebSocket/HTTP port.
-
tcp_port(int) –Newline-delimited JSON TCP port.
-
udp_port(int) –Datagram control/telemetry port.
-
started_by_sdk(bool) –Whether
ensure_bridgestarted this process. -
pid(Optional[int]) –Managed bridge process ID when available.
Source code in sim2bot/bridge.py
Practical examples¶
Examples use objects discovered from the current scene rather than hard-coded robot metadata.
Inspect an automatic bridge
Use raw transport ports
Guidance¶
Usage tip
started_by_sdk distinguishes a process this Python interpreter owns from a bridge it merely discovered.