Python examples¶
These are complete, runnable Python programs organized by outcome. Start with the smallest program that matches your task, run it against a local Sim2Bot scene, then follow its API links when you need exact parameter details.
New to the SDK?
Complete Your first Python script before using the larger examples below.
Choose an example¶
-
Python basics
Connect, wait for the browser, discover the current scene, and move safely.
-
Robot motion and trajectories
Play timestamped waypoints and stream velocity with guaranteed cleanup.
-
Telemetry and data recording
Consume live robot state without blocking the SDK reader thread.
-
Cameras and OpenCV
Discover a world-mounted camera, capture a frame, and save an image.
-
Multi-robot control
Discover and address multiple robots without assuming scene order or DOF.
-
Scene automation
Draw diagnostic markers and inspect or command authored room mechanisms.
-
Advanced networking and performance
Use authenticated LAN access, UDP, rooms, and timing-aware command loops.
Guides and exact API details¶
- Python SDK concepts explains discovery, addressing, timing, telemetry, and camera ownership.
- Bridge and networking documents WebSocket, TCP, UDP, and the bridge protocol.
- Python API reference provides source-generated signatures, parameters, return values, exceptions, and focused examples.