Metaworld
Metaworld copied to clipboard
The code for creating "single-task goal conditioned" environments is confusing
The code used to create metaworld.envs.ALL_V2_ENVIRONMENTS_GOAL_OBSERVABLE
and metaworld.envs.ALL_V2_ENVIRONMENTS_GOAL_HIDDEN
is highly non-obvious and among other things involves running a regex on the environment name. It should be possible to implement this with a simple for loop and a small wrapper class. The current implementation is here. Fortunately, there are test here, so this change should be fairly easy to make and low-risk.