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
#@title test virtual display
#@markdown If you see a video of a four-legged ant fumbling about, setup is complete!
import gym
from cs285.infrastructure.colab_utils import (
wrap_env,
show_video
)
env = wrap_env(gym.make("Ant-v4", render_mode='rgb_array'))
observation = env.reset()
for i in range(100):
env.render()
obs, rew, term, _ = env.step(env.action_space.sample() )
if term:
break;
env.close()
print('Loading video...')
show_video()
It shows:
/usr/local/lib/python3.10/dist-packages/gym/wrappers/record_video.py:75: UserWarning: WARN: Overwriting existing videos at /content/video folder (try specifying a different `video_folder` for the `RecordVideo` wrapper if this is not desired)
logger.warn(
---------------------------------------------------------------------------
FatalError Traceback (most recent call last)
[<ipython-input-26-07246415da83>](https://localhost:8080/#) in <cell line: 13>()
11 env = wrap_env(gym.make("Ant-v4", render_mode='rgb_array'))
12
---> 13 observation = env.reset()
14 for i in range(100):
15 env.render()
10 frames
[/usr/local/lib/python3.10/dist-packages/gym/envs/mujoco/mujoco_rendering.py](https://localhost:8080/#) in __init__(self, model, data, offscreen)
55 self.vopt = mujoco.MjvOption()
56 self.pert = mujoco.MjvPerturb()
---> 57 self.con = mujoco.MjrContext(self.model, mujoco.mjtFontScale.mjFONTSCALE_150)
58
59 self._markers = []
FatalError: gladLoadGL error
The text was updated successfully, but these errors were encountered:
When running the code
It shows:
The text was updated successfully, but these errors were encountered: