How terminalworld/openrua works
OpenRUA lets coding agents operate real or simulated robots through ROS 2. The main workflow is: a user starts a task or shared session, OpenRUA resolves robot/agent/benchmark configuration, prepares a workspace and runtime, then the agent uses robot interfaces and execution feedback to continue. It also supports shared TUI/browser/CLI chat and recorded benchmark trials. The graph combines README-documented behavior with SOURCE INDEX references; unsampled internals are represented at their supported paths, and unverified wiring is omitted.
Main entry points: runner/main.py Trial runner · loader.py Config composition · bridge/main.py Simulation bridge · registry.py Agent registry
Components 27
Configuration
- Config composition
openrua/config/loader.py - Config schema
openrua/config/schema.py - Config paths
openrua/config/paths.py
Task execution
- Agent registry
openrua/agents/registry.py - Agent contract
openrua/agents/base.py - Agent plugins
openrua/plugins/agents/claude_conversation.py - Robot workspace
openrua/sandbox/workspace.py - Trial runner
openrua/runner/main.py - Trial execution
openrua/runner/trial.py - Trial recording
openrua/runner/record.py - Trial operators
openrua/runner/operators.py
Robot interfaces
- Robot runtime
openrua/robot/base.py - Simulator lifecycle
openrua/robot/sim/client.py - Simulation bridge
openrua/robot/sim/bridge/main.py - Engine and environment plugins
openrua/robot/sim/bridge/plug.py - ROS control ports
openrua/robot/sim/bridge/ros/controllers.py
Shared sessions
- Session service
openrua/sessions/http.py - Session execution
openrua/sessions/core.py - Session state
openrua/sessions/store.py - Session API client
openrua/sessions/client.py
User interfaces
- CLI commands
openrua/cli/commands - Terminal chat
ui/terminal/src/app.mjs - Chat controller
ui/terminal/src/controller.mjs - Browser interface
openrua/web/app.js
Other components
- User
- Coding agent
- Real or simulated robot
Connections 28
- User → CLI commands: starts task
- CLI commands → Config composition: resolves settings
- Config composition → Config schema: validates against
openrua/config/__init__.py - Config composition → Config paths: locates files
openrua/config/loader.py - Trial runner → Config composition: loads configuration
openrua/runner/main.py - Trial runner → Agent registry: selects agent
openrua/runner/main.py - Agent registry → Agent contract: composes agent
openrua/agents/registry.py - Agent contract → Agent plugins: uses hooks
openrua/plugins/agents/claude_code.py - Trial runner → Robot workspace: seeds workspace
openrua/runner/main.py - Coding agent → Robot workspace: explores and edits
- Coding agent → Real or simulated robot: issues ROS commands
- Trial runner → Trial execution: runs trials
openrua/runner/main.py - Trial runner → Trial operators: selects operator
openrua/runner/main.py - Trial runner → Trial recording: records artifacts
openrua/runner/main.py - Trial execution → Robot runtime: operates robot
- Robot runtime → Simulator lifecycle: uses simulator lifecycle
openrua/robot/sim/client.py - Simulator lifecycle → Simulation bridge: starts bridge
- Simulation bridge → Engine and environment plugins: binds engine and loader
openrua/robot/sim/bridge/main.py - Simulation bridge → ROS control ports: creates control graph
- ROS control ports → Real or simulated robot: sends control commands
- User → Terminal chat: chats through
- User → Browser interface: chats through
- Terminal chat → Chat controller: delegates chat state
ui/terminal/src/app.mjs - Chat controller → Session API client: requests session API
- Session API client → Session service: sends local HTTP requests
openrua/sessions/client.py - Session service → Session execution: dispatches session operations
- Session execution → Session state: persists session state
- Coding agent → Real or simulated robot: uses execution feedback