fancy_gym/alr_envs/meta
2021-11-15 09:10:03 +01:00
..
__init__.py added promp wrapped environments 2021-11-15 09:10:03 +01:00
goal_change_mp_wrapper.py fixed issue of incorrectly retrieving the current position for metaworld tasks 2021-09-16 11:48:14 +02:00
goal_endeffector_change_mp_wrapper.py fixed issue of incorrectly retrieving the current position for metaworld tasks 2021-09-16 11:48:14 +02:00
goal_object_change_mp_wrapper.py fixed issue of incorrectly retrieving the current position for metaworld tasks 2021-09-16 11:48:14 +02:00
object_change_mp_wrapper.py fixed issue of incorrectly retrieving the current position for metaworld tasks 2021-09-16 11:48:14 +02:00
README.MD integrated metaworld tasks into the framework 2021-08-19 09:30:54 +02:00

MetaWorld Wrappers

These are the Environment Wrappers for selected Metaworld environments in order to use our Motion Primitive gym interface with them. All Metaworld environments have a 39 dimensional observation space with the same structure. The tasks differ only in the objective and the initial observations that are randomized. Unused observations are zeroed out. E.g. for Button-Press-v2 the observation mask looks the following:

    return np.hstack([
        # Current observation
        [False] * 3,  # end-effector position
        [False] * 1,  # normalized gripper open distance
        [True] * 3,  # main object position
        [False] * 4,  # main object quaternion
        [False] * 3,  # secondary object position
        [False] * 4,  # secondary object quaternion
        # Previous observation
        [False] * 3,  # previous end-effector position
        [False] * 1,  # previous normalized gripper open distance
        [False] * 3,  # previous main object position
        [False] * 4,  # previous main object quaternion
        [False] * 3,  # previous second object position
        [False] * 4,  # previous second object quaternion
        # Goal
        [True] * 3,  # goal position
    ])

For other tasks only the boolean values have to be adjusted accordingly.