Skip to content
Discussion options

You must be logged in to vote

For future readers, this was resolved in PR #297.

The decided solution was:

  1. All write methods write to the state (qpos, qvel, xfrc_applied, ctrl, etc.) Thus write methods are all "up-to-date" in that sense.
  2. Read properties, on the other hand, read from derived quantities (e.g., xpos, cvel) and thus, it is the user's responsibility to call sim.forward() if they need up-to-date values with respect to the current state. This is particularly important when using multiple events: if Event A writes state and Event B reads state, you must call sim.forward() between them.
  3. All inputs and outputs use world frame. Internal MuJoCo conventions (e.g., angular velocity in body frame) are handled autom…

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 louislelay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants