Skip to content

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.

    Start with Python

  • Robot motion and trajectories

    Play timestamped waypoints and stream velocity with guaranteed cleanup.

    Control motion

  • Telemetry and data recording

    Consume live robot state without blocking the SDK reader thread.

    Read telemetry

  • Cameras and OpenCV

    Discover a world-mounted camera, capture a frame, and save an image.

    Capture images

  • Multi-robot control

    Discover and address multiple robots without assuming scene order or DOF.

    Control multiple robots

  • Scene automation

    Draw diagnostic markers and inspect or command authored room mechanisms.

    Automate the scene

  • Advanced networking and performance

    Use authenticated LAN access, UDP, rooms, and timing-aware command loops.

    Configure advanced connections

Guides and exact API details