From a30bdb8ce54a699dd00447e7b79ecc4c0f85858b Mon Sep 17 00:00:00 2001 From: ottofabian Date: Thu, 24 Jun 2021 15:26:20 +0200 Subject: [PATCH] updated simple reacher example to new structure --- alr_envs/classic_control/simple_reacher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alr_envs/classic_control/simple_reacher.py b/alr_envs/classic_control/simple_reacher.py index 04a1110..b61266f 100644 --- a/alr_envs/classic_control/simple_reacher.py +++ b/alr_envs/classic_control/simple_reacher.py @@ -1,15 +1,15 @@ from typing import Iterable, Union +import gym import matplotlib.pyplot as plt import numpy as np from gym import spaces from gym.utils import seeding -from mp_env_api.envs.mp_env import MpEnv from mp_env_api.envs.mp_env_wrapper import MPEnvWrapper -class SimpleReacherEnv(MpEnv): +class SimpleReacherEnv(gym.Env): """ Simple Reaching Task without any physics simulation. Returns no reward until 150 time steps. This allows the agent to explore the space, but requires precise actions