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

test grippers import bug #477

Open
kingduyin opened this issue Apr 30, 2024 · 1 comment
Open

test grippers import bug #477

kingduyin opened this issue Apr 30, 2024 · 1 comment

Comments

@kingduyin
Copy link

error msg:

Traceback (most recent call last):
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevd.py", line 1534, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File ".../robosuite/tests/test_grippers/test_robotiq_85.py", line 25, in <module>
    robotiq_tester(True, 20, False)
  File ".../robosuite/tests/test_grippers/test_robotiq_85.py", line 19, in robotiq_tester
    tester.start_simulation()
  File ".../robosuite/robosuite/models/grippers/gripper_tester.py", line 122, in start_simulation
    render_context = MjRenderContextOffscreen(self.sim, device_id=-1)
NameError: name 'MjRenderContextOffscreen' is not defined

fix bug:

'robosuite/models/grippers/gripper_tester.py' File add 'from robosuite.utils.binding_utils import MjRenderContextOffscreen'

@kevin-thankyou-lin
Copy link
Contributor

Should be fixed in latest release (currently in branch)

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

2 participants