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

Not able to visualize contact forces #588

Open
hermanjakobsen opened this issue Nov 5, 2020 · 4 comments
Open

Not able to visualize contact forces #588

hermanjakobsen opened this issue Nov 5, 2020 · 4 comments

Comments

@hermanjakobsen
Copy link

Describe the bug
Pressing "C" on the keyboard has no effect on visualization of the contact forces. Whenever I press the key, the menu says that the contact forces are toggled on but the forces are not visualized.

To Reproduce
Press "C" while simulating an arbitrary environment.

Expected behavior
Expected to see visualization of vectors representing contact forces.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Python Version 3.8.5
  • Mujoco Version 2.0
  • mujoco-py version 2.0.2.9

Environment

  • output of: echo $LD_LIBRARY_PATH: /usr/lib/cuda/include:/usr/lib/cuda/lib64:/home/hermankj/webots/lib:/home/hermankj/.mujoco/mujoco200/bin:/home/hermankj/.mujoco/mjpro150/bin

  • output of: echo $HOME:
    /home/hermankj

  • output of: echo $USER:
    hermankj

@krzentner
Copy link

It might be helpful in diagnosing this that openai/gym disabled using mujoco 2.0 because contact forces were always zero. It looks like that issue was never fixed in this repo, although this fork claims to fix it.

@TheButlah
Copy link

Is a merge request going to be submitted for that fork? Its only a 1 line change. Any reason it couldn't be merged?

@rohanpsingh
Copy link

Was anybody able to solve this issue? I am unable to visualize the contact forces even after applying the patch mentioned by @krzentner.
Is moving to mujoco 1.5 the only solution?

@rohanpsingh
Copy link

Update: PR #487 is able to visualize contact forces!

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

No branches or pull requests

4 participants