Skip to content

feat(sim): add effective parameter queries and cached snapshots - #211

Merged
wlgys8 merged 1 commit into
mainfrom
feat/effective-parameter-cache
Dec 2, 2026
Merged

wlgys8 merged 1 commit into
mainfrom
feat/effective-parameter-cache

Conversation

@wlgys8

@wlgys8 wlgys8 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add backend-neutral runtime queries for effective actuator gains, geometry friction, link mass, and center of mass, distinct from nominal model metadata.
  • Cache actual simulator readbacks per world, preserving stable views, partial refreshes, and independent readers.
  • Keep cache coordination in core SimBackend: concrete backends and native read/write compilers do not receive cache objects.
  • Route consumers through compile_writes and invalidate parameter snapshots after parameter writes and resets, including partially failed writes.
  • Update the simulator read-program design documentation.

Validation

  • python -m pytest motrix_env_core/tests motrix_env_motrixsim/tests motrix_envs/tests/test_quadruped_walk.py -q: 609 passed, 3 skipped (11 NumPy deprecation warnings).
  • prek run --all-files: all hooks passed.
  • git diff --check: passed.

Scope

  • Validated core contracts and actual MotrixSim integration, including selected-world refreshes, independent readers, aliases, readback retries, reset invalidation, and live dynamic state alongside cached parameters.
  • No training or performance benchmark was run as part of this refactor.

@wlgys8
wlgys8 force-pushed the feat/effective-parameter-cache branch from 9dc4a48 to 525de3a Compare December 2, 2026 11:08
@wlgys8
wlgys8 force-pushed the feat/effective-parameter-cache branch from 525de3a to 4aeb685 Compare December 2, 2026 11:18
@wlgys8
wlgys8 merged commit 898d7e8 into main Dec 2, 2026
12 checks passed
@wlgys8
wlgys8 deleted the feat/effective-parameter-cache branch December 2, 2026 12: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