How lemon-cmyk/teleop-with-distribute works
XRoboToolkit-Teleop-Sample-Python is a Python teleoperation framework for driving simulated and physical robots from XR devices. The principal workflow reads XR poses and controls, transforms them into end-effector targets, solves robot kinematics, and sends commands to a simulator or hardware interface. Hardware sessions can also capture robot state, XR input, and camera frames for logged datasets. The README documents several robot and hand demonstrations; source excerpts are partial, so links between components are included only where the README or source index supports them.
Main entry points: base_teleop_controller.py Kinematics controller · base_hardware_teleop_controller.py Hardware controller base · interface Robot interfaces · tiangong_dual_arm_teleop_controller_camera_stale_fixed.py Tiangong dual-arm
Components 23
XR control
- XR input client
xrobotoolkit_teleop/common/xr_client.py
Shared runtime
- Kinematics controller
xrobotoolkit_teleop/common/base_teleop_controller.py - Hardware controller base
xrobotoolkit_teleop/common/base_hardware_teleop_controller.py - Pose geometry
xrobotoolkit_teleop/utils/geometry.py - Dexterous hand support
xrobotoolkit_teleop/utils/dex_hand_utils.py
Simulation
- MuJoCo controller
xrobotoolkit_teleop/simulation/mujoco_teleop_controller.py - Placo controller
xrobotoolkit_teleop/simulation/placo_teleop_controller.py - Robot demos
scripts/simulation
Robot hardware
- Dual UR control
xrobotoolkit_teleop/hardware/dual_arm_ur_controller.py - ARX R5 control
xrobotoolkit_teleop/hardware/arx_r5_teleop_controller.py - Galaxea control
xrobotoolkit_teleop/hardware/galaxea_r1_lite_teleop_controller.py - Tiangong dual-arm
xrobotoolkit_teleop/hardware/tiangong_dual_arm_teleop_controller_camera_stale_fixed.py - Robot interfaces
xrobotoolkit_teleop/hardware/interface - Tiangong transport
xrobotoolkit_teleop/hardware/interface/tiangong_optimized_compat.py - Tiangong configuration
xrobotoolkit_teleop/hardware/config/tiangong_config.py - Dynamixel head
xrobotoolkit_teleop/hardware/dynamixel_head_controller.py
Session capture
- Session logger
xrobotoolkit_teleop/common/data_logger.py - Camera interfaces
xrobotoolkit_teleop/hardware/interface/base_camera.py - Episode client
xrobotoolkit_teleop/hardware/tiangong_episode_client.py - Teleoperation logs
Other components
- XR operator
- XR PC service
- MuJoCo / Placo
Connections 30
- XR operator → XR PC service: moves and gestures
- XR PC service → XR input client: provides XR input
- XR input client → Kinematics controller: supplies poses
xrobotoolkit_teleop/common/base_teleop_controller.py - Kinematics controller → Pose geometry: transforms poses
xrobotoolkit_teleop/common/base_teleop_controller.py - Kinematics controller → Session logger: records session
xrobotoolkit_teleop/common/base_teleop_controller.py - Hardware controller base → Kinematics controller: extends
xrobotoolkit_teleop/common/base_hardware_teleop_controller.py - Hardware controller base → Camera interfaces: reads frames
xrobotoolkit_teleop/common/base_hardware_teleop_controller.py - MuJoCo controller → Kinematics controller: reuses control
xrobotoolkit_teleop/simulation/mujoco_teleop_controller.py - Placo controller → Kinematics controller: reuses control
xrobotoolkit_teleop/simulation/placo_teleop_controller.py - Robot demos → MuJoCo controller: starts demo
- Robot demos → Placo controller: starts demo
- MuJoCo controller → MuJoCo / Placo: controls model
- Placo controller → MuJoCo / Placo: visualizes robot
- Dual UR control → XR input client: reads controls
xrobotoolkit_teleop/hardware/dual_arm_ur_controller.py - Dual UR control → Robot interfaces: commands arms
xrobotoolkit_teleop/hardware/dual_arm_ur_controller.py - ARX R5 control → Hardware controller base: extends
xrobotoolkit_teleop/hardware/arx_r5_teleop_controller.py - ARX R5 control → Robot interfaces: uses ARX interface
xrobotoolkit_teleop/hardware/arx_r5_teleop_controller.py - Galaxea control → Hardware controller base: extends
xrobotoolkit_teleop/hardware/galaxea_r1_lite_teleop_controller.py - Galaxea control → Robot interfaces: uses ROS interface
xrobotoolkit_teleop/hardware/galaxea_r1_lite_teleop_controller.py - Tiangong dual-arm → Hardware controller base: extends
xrobotoolkit_teleop/hardware/tiangong_dual_arm_teleop_controller_camera_stale_fixed.py - Tiangong dual-arm → Tiangong transport: sends commands
xrobotoolkit_teleop/hardware/tiangong_dual_arm_teleop_controller_camera_stale_fixed.py - Tiangong dual-arm → Tiangong configuration: loads settings
xrobotoolkit_teleop/hardware/tiangong_dual_arm_teleop_controller_camera_stale_fixed.py - Tiangong dual-arm → Episode client: uses episodes
xrobotoolkit_teleop/hardware/tiangong_dual_arm_teleop_controller_camera_stale_fixed.py - Tiangong transport → Robot interfaces: communicates with robot
- Camera interfaces → Session logger: provides imagery
- Session logger → Teleoperation logs: writes sessions
- Episode client → Teleoperation logs: stores episodes
- Dynamixel head → XR input client: reads controls
xrobotoolkit_teleop/hardware/dynamixel_head_controller.py - Dynamixel head → Robot interfaces: controls head
xrobotoolkit_teleop/hardware/dynamixel_head_controller.py - Dexterous hand support → MuJoCo / Placo: supports hand demos