Skip to content

Framelinvel sensor and global velocity #2582

Closed Answered by v-r-a
Hardwarize asked this question in Asking for Help
Discussion options

You must be logged in to vote

Hi,

I am a MuJoCo user. I hope this helps.

Please insert mujoco.mj_forward(model, data) before print(data.sensordata) and you will see that the values match exactly. This is because the sensor value is stale by one step of integration. Please have a look at the simulation pipeline, especially this part.

The function mj_step() stops after advancing the simulation by one time step. The new sensor values corresponding to the advanced state are yet to be computed. Do the forward dynamic calculations using mj_forward(), and everything is up to date.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Hardwarize
Comment options

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