Example of rolling out Python-based policies and MJX-based environments with passive viewer #2324
Unanswered
hartikainen
asked this question in
Asking for Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Intro
Hello,
I'm a MuJoCo user working on manipulation.
My setup
My question
I'm looking for an example of how to sync mjpython passive viewer's state with external data. Specifically, I have an mjx-based environment and I want to visualize a rollout of trained jax-based policy while manually moving/perturbing the bodies from the passive viewer.
Say I have the following (somewhat incomplete and naive) passive viewer code:
This will obviously not work because none of the perturbations in data are synced into pipeline states. What should I sync from
data
intostates[-1]
? Do I need to do anything special here? Does there exist a clean example of handling such flow?Minimal model and/or code that explain my question
No response
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions