Skip to content

Commit

Permalink
Merge dcec0e0 into 81b3db1
Browse files Browse the repository at this point in the history
  • Loading branch information
goobta committed Feb 2, 2021
2 parents 81b3db1 + dcec0e0 commit ea4064f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion gym_solo/envs/solo8v2vanilla_realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,13 @@ def reset(self, *args, **kwargs):
"""
super().reset(*args, **kwargs)
# Since stepSimulation() is a noop, need to use time to reset the bot
time.sleep(1)
time.sleep(1)

def get_obs(self):
"""Get the current observation of the environment.
Note this is different from the OpenAI gym `get_obs()` as this is
a realtime simulation, so `get_obs()` can have different results even
if `env.step()` isn't called.
"""
return self.obs_factory.get_obs()

0 comments on commit ea4064f

Please sign in to comment.