Skip to content

Example of rolling out Python-based policies and MJX-based environments with passive viewer #2324

Discussion options

You must be logged in to vote

I managed to figure out a solution that satisfies my needs. I'll copy-paste a sketch of what my script looks like below in case someone else is looking for similar solution. Before that, though, to answer Yuval's question:

wouldn't it be easier to run the MJX-trained policy on C MuJoCo?

It would, if I wanted to rollout just the MuJoCo model. However, my task logic is written with MJX and in order to debug/visualize the task itself, I need to step with the environment. I could duplicate the task logic in a non-MJX environment, but that seems a bit clumsy and error-prone -- after all, the whole point of doing this is to enable debugging the original task. Maybe there exists a better and m…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hartikainen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants