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

Renderer not working in tutorial #17

Closed
ImranRolo opened this issue Jan 27, 2019 · 2 comments
Closed

Renderer not working in tutorial #17

ImranRolo opened this issue Jan 27, 2019 · 2 comments

Comments

@ImranRolo
Copy link

Following the README.md
When I run $ python robosuite/demo.py, everything works fine however under the Quick Start section of your README.md when I run:

import numpy as np
import robosuite as suite

# create environment instance
env = suite.make("SawyerLift", has_renderer=True)

# reset the environment
env.reset()

for i in range(1000):
    action = np.random.randn(env.dof)  # sample random action
    obs, reward, done, info = env.step(action)  # take action in the environment
    env.render()  # render on display

I get a blank (black) window that appears for three seconds before vanishing. I don't see any images or animations. I find that strange since running the demo.py worked fine.

@amandlek
Copy link
Member

That's pretty strange - your lines of code run fine on my machine. Could you try passing the same arguments to suite.make as in the demo? Most importantly, pass use_camera_obs=False and for good measure, has_offscreen_renderer=False as well.

@ImranRolo
Copy link
Author

Yes your amendments worked!

anchit pushed a commit that referenced this issue Apr 15, 2019
visualization of eef site for lift env
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