tristandeleu / pytorch-maml-rl

Reinforcement Learning with Model-Agnostic Meta-Learning in Pytorch
MIT License
827 stars 158 forks source link

HalfCheetahDir-v1 #33

Closed huziye closed 4 years ago

huziye commented 5 years ago

gym.error.UnregisteredEnv: No registered env with id: HalfCheetahDir-v1

tristandeleu commented 5 years ago

Unfortunately I can't reproduce this issue, HalfCheetahDir-v1 seems to be a registered environment. You need to import maml_rl.envs to have it registered. Here is a minimal example:

import gym
import maml_rl.envs

env = gym.make('HalfCheetahDir-v1')
env.reset()
# array([-0.0751029 , -0.07509115,  0.05787869,  0.02848843, -0.05144181,
#        -0.02094518,  0.04857731, -0.09620628,  0.16613868,  0.00942491,
#        -0.05969412, -0.07064104, -0.06281215,  0.07932635,  0.0580543 ,
#         0.10629556, -0.04309025, -0.05123023,  0.        ,  0.6248971 ],
#       dtype=float32)