How stanford-tml/homebody works
HomeBody supports two related workflows: an operator starts live REAL2SIM exploration, whose recordings are reconstructed into reusable scenes; in SIM, a task is presented to a model, which selects registered skills that observe and act through a robot backend. Skills cover navigation and pick/place, while backends provide simulation or G1 control. The graph preserves these documented capabilities and the sampled runtime layers. Some REAL2SIM internals and real-robot runtime paths were not excerpted, so uncertain connections are omitted.
Main entry points: pick.py Pick skill · session.py Task session · contract.py Skill lifecycle · place.py Place skill
Components 23
Task interaction
- Task console
src/homebody/ui/console.py - Task session
src/homebody/session/session.py - Model provider
src/homebody/vlm/provider.py
Skills and motion
- Skill lifecycle
src/homebody/skills/contract.py - Navigation skill
src/homebody/skills/navigate.py - Pick skill
src/homebody/skills/pick.py - Place skill
src/homebody/skills/place.py - Carry tracking
src/homebody/motion/carry.py - Arm motion
src/homebody/motion/arm.py - Geometry and collision
src/homebody/helpers/geometry.py
Robot runtime
- Robot observations
src/homebody/primitives/observations.py - MuJoCo backend
src/homebody/backends/mujoco.py - Simulation controller
src/homebody/backends/controller.py - G1 backend
src/homebody/backends/g1/body_host.py - Reusable scene
src/homebody/backends/scene.py
REAL2SIM
- Exploration console
src/homebody/real2sim/exploration/app.py - Exploration planner
src/homebody/real2sim/exploration/planner.py - Exploration settings
src/homebody/real2sim/exploration/settings.py - Exploration capture
src/homebody/capture_package.py - Scene reconstruction
src/homebody/real2sim/cli.py
Other components
- Operator
- Unitree G1
- Model service
Connections 27
- Operator → Task console: submits task
README.md - Task console → Task session: starts session
README.md - Task session → Model provider: requests decision
src/homebody/session/session.py - Model provider → Model service: queries model
README.md - Task session → Skill lifecycle: runs skills
src/homebody/session/session.py - Skill lifecycle → Navigation skill: dispatches
src/homebody/skills/navigate.py - Skill lifecycle → Pick skill: dispatches
src/homebody/skills/pick.py - Skill lifecycle → Place skill: dispatches
src/homebody/skills/place.py - Pick skill → Navigation skill: requests approach
src/homebody/skills/pick.py - Pick skill → Carry tracking: registers hold
src/homebody/motion/carry.py - Place skill → Carry tracking: checks carry
src/homebody/skills/place.py - Pick skill → Arm motion: moves arm
src/homebody/skills/pick.py - Place skill → Arm motion: moves arm
src/homebody/skills/place.py - Pick skill → Geometry and collision: plans grasp
src/homebody/skills/pick.py - Place skill → Geometry and collision: checks clearance
src/homebody/skills/place.py - Task session → Robot observations: publishes frames
src/homebody/session/session.py - MuJoCo backend → Robot observations: fills measurements
src/homebody/backends/mujoco.py - MuJoCo backend → Simulation controller: uses controller
src/homebody/backends/mujoco.py - Simulation controller → G1 backend: controls in simulation
- G1 backend → Unitree G1: controls robot
- Operator → Exploration console: starts exploration
README.md - Exploration console → Exploration planner: plans exploration
src/homebody/real2sim/exploration/app.py - Exploration console → Exploration settings: loads settings
src/homebody/real2sim/exploration/app.py - Exploration console → Exploration capture: records run
README.md - Exploration capture → Scene reconstruction: provides recording
README.md - Scene reconstruction → Reusable scene: produces scene
README.md - Reusable scene → MuJoCo backend: loads scene
src/homebody/backends/scene.py