You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, is there any simple way to visualize the state of the environment by doing something like env.render(), I tried env.render() but it says that render is not defined for the env object. I only ask this since environments following the gym api generally have a render method, right?
The following is the example code that I am trying to run -
mdp=OvercookedGridworld.from_layout_name("asymmetric_advantages_tomato")
env=OvercookedEnv.from_mdp(mdp, horizon=400)
# for a certain number of timesteps, run random actions for both of the agentsnum_time_steps=200env.reset()
foriinrange(num_time_steps):
# sample random actionjoint_action=random_joint_action()
# step the env with that actionstate, rewards, dones, info=env.step(joint_action)
env.render()
This gives an error - AttributeError: 'OvercookedEnv' object has no attribute 'render'
I mean I know this is an obvious error, but I am curious to know as to why doesn't the env have a render method?
Thanks again for the great environment and package!
Megh Bhalerao
The text was updated successfully, but these errors were encountered:
Hi, is there any simple way to visualize the state of the environment by doing something like
env.render()
, I triedenv.render()
but it says that render is not defined for the env object. I only ask this since environments following the gym api generally have a render method, right?The following is the example code that I am trying to run -
This gives an error -
AttributeError: 'OvercookedEnv' object has no attribute 'render'
I mean I know this is an obvious error, but I am curious to know as to why doesn't the env have a render method?
Thanks again for the great environment and package!
Megh Bhalerao
The text was updated successfully, but these errors were encountered: