From 00e268d857477ee72c7310285ee7f29961f5ace3 Mon Sep 17 00:00:00 2001 From: nandant Date: Wed, 25 Sep 2024 00:36:36 +0200 Subject: [PATCH] Removing keepalive from example --- examples/waypoint_follow.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/waypoint_follow.py b/examples/waypoint_follow.py index f61a7c72..07927199 100644 --- a/examples/waypoint_follow.py +++ b/examples/waypoint_follow.py @@ -343,8 +343,7 @@ def main(): laptime = 0.0 start = time.time() - i = 1 - while not done or i < 1000: + while not done: action = env.action_space.sample() for i, agent_id in enumerate(obs.keys()): speed, steer = planner.plan( @@ -358,7 +357,6 @@ def main(): obs, step_reward, done, truncated, info = env.step(action) laptime += step_reward frame = env.render() - i += 1 print("Sim elapsed time:", laptime, "Real elapsed time:", time.time() - start)