From b908b147a678f9850e53caa86431de78e9174191 Mon Sep 17 00:00:00 2001 From: AndreaIncertiDelmonte Date: Fri, 26 Jan 2018 10:09:14 +0100 Subject: [PATCH] Overwrite of the reset() public funciton in child classes --- examples/pybullet/gym/pybullet_envs/bullet/kukaGymEnv.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/pybullet/gym/pybullet_envs/bullet/kukaGymEnv.py b/examples/pybullet/gym/pybullet_envs/bullet/kukaGymEnv.py index d2a47935d..b9ef16017 100644 --- a/examples/pybullet/gym/pybullet_envs/bullet/kukaGymEnv.py +++ b/examples/pybullet/gym/pybullet_envs/bullet/kukaGymEnv.py @@ -275,3 +275,11 @@ class KukaGymEnv(gym.Env): #print("reward") #print(reward) return reward + + def reset(self): + """Resets the state of the environment and returns an initial observation. + + Returns: observation (object): the initial observation of the + space. + """ + return self._reset() \ No newline at end of file