From d66198f97d01005957f493299fc5fc2f74020ed6 Mon Sep 17 00:00:00 2001 From: ll7 Date: Wed, 27 Nov 2024 10:09:10 +0100 Subject: [PATCH] refactor: remove unused observation variable in simulation loop --- examples/ego_ped_example.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ego_ped_example.py b/examples/ego_ped_example.py index 526bebe..12f9d44 100644 --- a/examples/ego_ped_example.py +++ b/examples/ego_ped_example.py @@ -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()