How hugo-agi/robodawn works
RoboDawn is a closed-loop vision-language robot-control system evaluated through RoboTwin 2.0 and RoboDojo. A task instruction and observations (camera views plus robot state) go to a multimodal model, which returns discrete commands; the harness parses and executes them as planned motions, then feeds execution feedback into the next turn. In-context demonstrations and a command primer condition the policy. The repository has separate RoboTwin harness and RoboDojo policy implementations. Edges reflect README workflow statements or shown source references; unsampled subsystem internals are not inferred.
Main entry points: agent.py VLM agent · mllm_agent.py Closed-loop agent · run_robotwin_eval.py Evaluation runner · main_route.py Command routing
Components 22
RoboTwin harness
- Evaluation runner
harness/run_robotwin_eval.py - Closed-loop agent
harness/agent/mllm_agent.py - Demo selection
harness/agent/demos.py - Prompt and memory
harness/agent/prompts.py - Chat client
harness/agent/llm_client.py - Command grammar
harness/core/commands.py - Environment contract
harness/core/env.py - RoboTwin environment
harness/robotwin/env.py - Stall watchdog
harness/core/watchdog.py
RoboDojo policy
- VLM agent
evaluation/policies/vlm_agent/agent.py - Response parser
evaluation/policies/vlm_agent/action_parser.py - Command routing
evaluation/policies/vlm_agent/main_route.py - Arm state geometry
evaluation/policies/vlm_agent/controller.py - Motion planning
evaluation/policies/vlm_agent/motion.py - VLM client
evaluation/policies/vlm_agent/vlm_client.py - In-context demos
evaluation/policies/vlm_agent/icl_demos.py - Prompt and routes
evaluation/policies/vlm_agent/main_prompts.py
Evaluation artifacts
- Task demonstrations
demos/robodojo - Episode traces
demos/robotwin2
Other components
- Task instruction
- Multimodal model
- RoboDojo simulator
Connections 27
- Task instruction → Evaluation runner: starts evaluation
harness/run_robotwin_eval.py - Evaluation runner → RoboTwin environment: resets episodes
harness/run_robotwin_eval.py - Evaluation runner → Closed-loop agent: runs policy
harness/run_robotwin_eval.py - Closed-loop agent → Demo selection: loads demonstrations
harness/agent/mllm_agent.py - Closed-loop agent → Prompt and memory: builds context
harness/agent/mllm_agent.py - Closed-loop agent → Chat client: requests completion
harness/agent/mllm_agent.py - Chat client → Multimodal model: sends prompt
harness/agent/llm_client.py - Multimodal model → Closed-loop agent: returns commands
README.md - Closed-loop agent → Command grammar: parses commands
harness/agent/mllm_agent.py - Closed-loop agent → Environment contract: executes actions
harness/agent/mllm_agent.py - Environment contract → RoboTwin environment: implemented by
harness/robotwin/env.py - RoboTwin environment → Closed-loop agent: returns feedback
README.md - Evaluation runner → Stall watchdog: starts watchdog
harness/run_robotwin_eval.py - Task instruction → VLM agent: provides task
README.md - VLM agent → In-context demos: loads demonstrations
evaluation/policies/vlm_agent/agent.py - VLM agent → Prompt and routes: builds prompt
evaluation/policies/vlm_agent/agent.py - VLM agent → VLM client: requests completion
evaluation/policies/vlm_agent/agent.py - VLM client → Multimodal model: sends prompt
evaluation/policies/vlm_agent/vlm_client.py - Multimodal model → VLM agent: returns commands
README.md - VLM agent → Response parser: parses response
evaluation/policies/vlm_agent/agent.py - VLM agent → Command routing: routes commands
evaluation/policies/vlm_agent/agent.py - Command routing → Arm state geometry: resolves arm state
evaluation/policies/vlm_agent/controller.py - Command routing → Motion planning: plans motion
- VLM agent → RoboDojo simulator: exchanges observations
README.md - RoboDojo simulator → VLM agent: returns feedback
README.md - Task demonstrations → In-context demos: supplies examples
- Evaluation runner → Episode traces: records episodes