From c3da9b29a1953551372140ac859472562e6ca602 Mon Sep 17 00:00:00 2001 From: Yann Bouteiller Date: Wed, 14 Sep 2022 15:28:10 -0400 Subject: [PATCH] readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 189e1d7..8c77c3a 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ env = gym.make("real-time-gym-v0", my_config, disable_env_checker=True) obs, info = env.reset() while True: # when this loop is broken, the current time-step will timeout act = model(obs) # inference takes a random amount of time - obs, rew, terminated, truncated, info = env.step(act) # the step function transparently adapts to this duration + obs, rew, terminated, truncated, info = env.step(act) # step transparently adapts to this duration ``` You may want to have a look at the [timestamps updating](https://github.com/yannbouteiller/rtgym/blob/969799b596e91808543f781b513901426b88d138/rtgym/envs/real_time_env.py#L188) method of ```rtgym```, which is reponsible for elastically clocking time-steps.