Skip to content

Commit

Permalink
Removing keepalive from example
Browse files Browse the repository at this point in the history
  • Loading branch information
nandantumu committed Sep 24, 2024
1 parent 0348928 commit 00e268d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/waypoint_follow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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)

Expand Down

0 comments on commit 00e268d

Please sign in to comment.