How rhoban/onshape-to-robot works
Onshape to Robot retrieves a CAD assembly and converts it into a simulation-ready robot description. The main flow is configuration and user invocation, Onshape API retrieval, assembly interpretation, robot-model construction, optional model processors, then URDF, SDF, or MuJoCo export. The README names those three output formats. The graph also shows API caching and the documented simulation capability; unsampled modules are represented only where the tree or README supports the subsystem, so their internal wiring is not asserted.
Main entry points: export.py Export command · robot.py Robot model · exporter_urdf.py URDF exporter · exporter_sdf.py SDF exporter
Components 20
Inputs and entry
- Configuration
onshape_to_robot/config.py - Export command
onshape_to_robot/export.py
CAD retrieval
- Onshape client
onshape_to_robot/onshape_api/client.py - Onshape API
onshape_to_robot/onshape_api/onshape.py - Response cache
onshape_to_robot/onshape_api/cache.py
Robot modeling
- Assembly parser
onshape_to_robot/assembly.py - Robot builder
onshape_to_robot/robot_builder.py - Robot model
onshape_to_robot/robot.py - Geometry model
onshape_to_robot/geometry.py - Expression parser
onshape_to_robot/expression.py
Model processing
- Processor interface
onshape_to_robot/processor.py - Processor registry
onshape_to_robot/processors.py - Robot processors
onshape_to_robot
Exports and simulation
- Exporter base
onshape_to_robot/exporter.py - URDF exporter
onshape_to_robot/exporter_urdf.py - SDF exporter
onshape_to_robot/exporter_sdf.py - MuJoCo exporter
onshape_to_robot/exporter_mujoco.py - Simulation
onshape_to_robot/simulation.py
Other components
- Robot author
- Physics simulator
Connections 29
- Robot author → Export command: runs export
README.md - Export command → Configuration: loads settings
onshape_to_robot/export.py - Export command → Robot builder: builds model
onshape_to_robot/export.py - Export command → URDF exporter: selects format
onshape_to_robot/export.py - Export command → SDF exporter: selects format
onshape_to_robot/export.py - Export command → MuJoCo exporter: selects format
onshape_to_robot/export.py - Configuration → Processor registry: loads registry
onshape_to_robot/config.py - Onshape client → Onshape API: sends requests
onshape_to_robot/onshape_api/client.py - Onshape client → Response cache: decorates reads
onshape_to_robot/onshape_api/client.py - Assembly parser → Onshape client: requests CAD data
onshape_to_robot/assembly.py - Assembly parser → Expression parser: parses expressions
onshape_to_robot/assembly.py - Robot builder → Assembly parser: constructs assembly
onshape_to_robot/robot_builder.py - Robot builder → Robot model: builds model
onshape_to_robot/robot_builder.py - Robot model → Geometry model: holds geometry
onshape_to_robot/robot.py - Configuration → Robot processors: configures processors
onshape_to_robot/config.py - Processor registry → Robot processors: registers modules
onshape_to_robot/processors.py - Robot processors → Processor interface: implements interface
onshape_to_robot/processor_merge_parts.py - Export command → Exporter base: uses exporter
onshape_to_robot/export.py - URDF exporter → Exporter base: extends base
onshape_to_robot/exporter_urdf.py - SDF exporter → Exporter base: extends base
onshape_to_robot/exporter_sdf.py - MuJoCo exporter → Exporter base: extends base
onshape_to_robot/exporter_mujoco.py - URDF exporter → Robot model: serializes model
onshape_to_robot/exporter_urdf.py - SDF exporter → Robot model: serializes model
onshape_to_robot/exporter_sdf.py - MuJoCo exporter → Robot model: serializes model
onshape_to_robot/exporter_mujoco.py - URDF exporter → Geometry model: serializes geometry
onshape_to_robot/exporter_urdf.py - SDF exporter → Geometry model: serializes geometry
onshape_to_robot/exporter_sdf.py - MuJoCo exporter → Geometry model: serializes geometry
onshape_to_robot/exporter_mujoco.py - Robot author → Simulation: runs simulation
README.md - Simulation → Physics simulator: uses physics engine