sim2bot.Robot.room_devices¶
room_devices(timeout: float = 2.0) -> list[RoomDeviceInfo]
¶
Return authored doors and windows available for scene-level control.
Parameters:
-
timeout(float, default:2.0) –Discovery timeout in seconds when the scene is not cached.
Returns:
-
list[RoomDeviceInfo]–Discovered
RoomDeviceInfoentries.
Raises:
-
RuntimeError–If discovery is needed and the client is not connected.
-
ConnectionClosed–If the WebSocket closes during discovery.
-
OSError–If the selected transport cannot send a discovery request.
Notes
Room actuation is experimental while browser-side mechanisms are being revised.
Source code in sim2bot/client.py
Practical examples¶
Examples use objects discovered from the current scene rather than hard-coded robot metadata.
Inspect doors and windows
Guidance¶
Important behavior
Room-device motion is experimental while browser-side actuation is being revised.