Skip to content

Commit b54ed03

Browse files
committed
example for equlity constraint mpc, inverse dynamic formulation for piper set point and go2 locomotion
1 parent 0c712e5 commit b54ed03

6 files changed

Lines changed: 254 additions & 400 deletions

File tree

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,37 @@ python mpx/examples/mjx_quad.py
8484

8585
Use the keyboard's arrows to control the robot.
8686

87+
## Diffusion-MPPI-guided FDDP
88+
89+
MPX includes a receding-horizon manipulation solver that anneals a diagonal
90+
Gaussian in control-knot space, then refines its mean with FDDP. The local
91+
solver adds a temporary Gaussian precision to `l_u` and `l_uu`, decays that
92+
guidance each iteration, and reports physical task cost separately from prior
93+
cost. Original FDDP and primal-dual modes remain available.
94+
95+
```bash
96+
# Interactive Push-T with live samples, mean, FDDP prediction, and history
97+
pixi run python -m mpx.examples.push_t_guided_mpc --viewer --verbose
98+
99+
# Deterministic Push-T benchmark and plots
100+
pixi run python -m mpx.examples.push_t_guided_mpc \
101+
--headless --seeds 0 1 2 3 4 --plot
102+
103+
# Interactive full-MJX AgileX Piper box push
104+
pixi run python -m mpx.examples.agilex_box_push_guided_mpc --viewer --verbose
105+
106+
# Nominal and mismatched-plant Piper benchmarks
107+
pixi run python -m mpx.examples.agilex_box_push_guided_mpc \
108+
--headless --seeds 0 1 2 3 4 --condition nominal --plot
109+
pixi run python -m mpx.examples.agilex_box_push_guided_mpc \
110+
--headless --condition heavy
111+
```
112+
113+
Both examples accept `--mode fddp`, `--mode mppi`, `--mode mppi_fddp`, or
114+
`--mode guided`. See [`docs/diffusion_mppi_fddp.md`](docs/diffusion_mppi_fddp.md)
115+
for equations, ablations, video commands, diagnostics, model attribution, and
116+
measured limitations.
117+
87118
> **Note:**
88119
The first time running the script it can take more than a minute to JIT the solver
89120

0 commit comments

Comments
 (0)