Skip to content

fix(join_blocks): disable midpoint integration to stop wall divergence on reset - #7

Merged
juelg merged 1 commit into
masterfrom
fix/join-blocks-reset
Oct 17, 2026
Merged

juelg merged 1 commit into
masterfrom
fix/join-blocks-reset

Conversation

@juelg

@juelg juelg commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Since rcs-core 0.7.3 (mujoco 3.2.6 -> 3.10.0), MuJoCo integrates standalone free bodies with a midpoint step under implicitfast (added in 3.7). For the wall's heavily damped free joint (damping 1000) this diverges within a few steps of every reset; MuJoCo's instability auto-reset then restores qpos0, teleporting both blocks back onto the wall at the composer add pose.

Enable invdiscrete for this task's model, which disables the midpoint step and restores the mujoco 3.2.6 behaviour the dataset was recorded with: blocks are randomized per seed again and the wall responds to pushes as before (20 N push: 1.5 mm vs 1.6 mm displacement on 3.2.6).

…e on reset

Since rcs-core 0.7.3 (mujoco 3.2.6 -> 3.10.0), MuJoCo integrates standalone
free bodies with a midpoint step under implicitfast (added in 3.7). For the
wall's heavily damped free joint (damping 1000) this diverges within a few
steps of every reset; MuJoCo's instability auto-reset then restores qpos0,
teleporting both blocks back onto the wall at the composer add pose.

Enable invdiscrete for this task's model, which disables the midpoint step
and restores the mujoco 3.2.6 behaviour the dataset was recorded with:
blocks are randomized per seed again and the wall responds to pushes as
before (20 N push: 1.5 mm vs 1.6 mm displacement on 3.2.6).
@juelg
juelg merged commit b92881b into master Oct 17, 2026
1 check passed
@juelg
juelg deleted the fix/join-blocks-reset branch October 17, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant