How jaeykimusa/jumping-in-mujoco works
This repository is a research workflow for Unitree Go2 forward-jump control: optional trajectory optimization produces references, MuJoCo rollouts evaluate feedforward/PD and disturbance cases, and analysis and rendering turn saved runs into plots and media. The README documents these capabilities and the supplied result files. Excerpts show the experiment-to-rollout and optimization-to-model relationships; some plotting and rendering inputs are explicit in source. The separate optimizer replay module is a core module, but its invocation path is not established by the excerpts.
Main entry points: experiments.py Experiment runner · optimize.py 3D jump optimizer · model Go2 model and scene · figures.py Plots and figures
Components 17
Trajectory optimization
- 3D jump optimizer
optimizer/optimize.py - Planar warm start
optimizer/planar.py - Dynamics and kinematics
optimizer/model.py - Optimizer rollout
optimizer/replay.py
Simulation
- Jump references
data - Go2 model and scene
model - Joint and leg names
go2_names.py - PD simulation rollout
replay.py - Experiment runner
experiments.py
Analysis and results
- Trial logs
data - Trial scores
data/results.csv - Linear metrics
data/linear.json - Plots and figures
figures.py
Visualization
- Jump video renderer
render_jump.py - Controller comparison renderer
render_comparison.py - Rendered media
figs
Other components
- Researcher
Connections 27
- Researcher → 3D jump optimizer: runs optionally
README.md - 3D jump optimizer → Dynamics and kinematics: loads model
optimizer/optimize.py - 3D jump optimizer → Planar warm start: builds warm start
optimizer/optimize.py - 3D jump optimizer → Go2 model and scene: reads robot files
README.md - 3D jump optimizer → Jump references: writes solutions
README.md - Researcher → Experiment runner: runs
README.md - Experiment runner → Jump references: loads references
experiments.py - Experiment runner → PD simulation rollout: runs trials
experiments.py - PD simulation rollout → Go2 model and scene: loads scene
replay.py - PD simulation rollout → Joint and leg names: uses joint names
replay.py - Experiment runner → Trial logs: saves rollouts
experiments.py - Experiment runner → Trial scores: writes scores
experiments.py - Experiment runner → Linear metrics: writes metrics
experiments.py - Researcher → Plots and figures: runs
README.md - Plots and figures → Trial logs: reads runs
figures.py - Plots and figures → Linear metrics: reads metrics
figures.py - Plots and figures → Rendered media: writes figures
README.md - Researcher → PD simulation rollout: replays reference
README.md - Researcher → Jump video renderer: renders jump
README.md - Jump video renderer → Trial logs: reads rollout
render_jump.py - Jump video renderer → Go2 model and scene: loads scene
render_jump.py - Jump video renderer → Rendered media: writes stills
render_jump.py - Researcher → Controller comparison renderer: renders comparison
README.md - Controller comparison renderer → Trial logs: reads paired runs
render_comparison.py - Controller comparison renderer → Go2 model and scene: loads scene
render_comparison.py - Optimizer rollout → Go2 model and scene: loads scene
optimizer/replay.py - Optimizer rollout → Joint and leg names: uses joint names
optimizer/replay.py