Skip to content

Commit

Permalink
refactor: remove unused observation variable in simulation loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ll7 committed Nov 27, 2024
1 parent e959a56 commit d66198f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/ego_ped_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ def test_simulation(map_definition: MapDefinition):

env = PedestrianEnv(env_config, robot_model=robot_model, debug=True, recording_enabled=True)

obs, _ = env.reset()
_, _ = env.reset()

logger.info("Simulating the random policy.")
for _ in range(10000):
action_ped = env.action_space.sample()
obs, _, done, _, _ = env.step(action_ped)
_, _, done, _, _ = env.step(action_ped)
env.render()

if done:
obs, _ = env.reset()
_, _ = env.reset()
env.render()

env.reset()
Expand Down

0 comments on commit d66198f

Please sign in to comment.