Skip to main content

Examples

These examples cover common SuperDex Robotics workflows. Each page mirrors a runnable script in superdex_robotics/examples/, broken into logically grouped snippets with the explanation drawn from the script's own comments, so you can read along and then run it.

Basic

ExampleScriptYou'll learn
Loading a Botexamples/basic/example_bot_loading.pyLoad a .superdex_bot and simulate it with the debugger.
Loading a Sceneexamples/basic/example_scene_loading.pyAssemble a workcell from separate bots and a task prefab.
Loading from URDFexamples/basic/example_urdf_loading.pyImport a robot straight from a .urdf, including the runtime loader's pitfalls.

Control

ExampleScriptYou'll learn
JSC Controlexamples/control/example_jsc_control.pyDrive joints with a joint-space PD controller.
OSC Controlexamples/control/example_osc_control.pyTrack a Cartesian target with an operational-space PD controller.
IK + Pose Controlexamples/control/example_ik_pose_control.pySolve inverse kinematics and hold the result with a pose controller.
OSC + JSC Controlexamples/control/example_osc_jsc_control.pyCombine two controllers on one arm-hand bot.
Bimanual Controlexamples/control/example_bimanual_control.pyRun one OSC per arm on a two-armed bot.

Running the examples

Set up uv and the SuperDex wheels as described in Getting Started, then run any example from the repository root:

uv run python superdex_robotics/examples/basic/example_bot_loading.py