Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Probable bug] Contact forces in MuJoCo 2.0 are absent. #1711

Closed
brickerino opened this issue Oct 16, 2019 · 1 comment
Closed

[Probable bug] Contact forces in MuJoCo 2.0 are absent. #1711

brickerino opened this issue Oct 16, 2019 · 1 comment
Labels

Comments

@brickerino
Copy link

brickerino commented Oct 16, 2019

Hello.
It looks like several environments (at least Ant and Humanoid) lack contact forces. The corresponding state part filled with zeroes, and corresponding reward part is absent too.

A environment (v2 and v3) uses the cfrc_ext field of PyMjData which is a proxy to the cfrc_ext field of MuJoCo C structure _mjData . But the changelog to MuJoCo 2.0 contains the following line:

The function mj_rnePostConstraint is no longer called by default. Instead, it is called only when the model contains force-related sensors which need the results of this function. The user can still call it directly in order to compute the mjData fields cacc, cfrc_ext, cfrc_int if desired.

Please look into it, is it a bug or was this omission intentional?

@christopherhesse
Copy link
Contributor

Closing in favor of #1541

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants