diff --git a/src/Active-Lane-Keeping-Assistant/main.py b/src/Active-Lane-Keeping-Assistant/main.py index 1b20920936..7ac65d4135 100644 --- a/src/Active-Lane-Keeping-Assistant/main.py +++ b/src/Active-Lane-Keeping-Assistant/main.py @@ -62,7 +62,7 @@ def run(id:str, path:str, world:World, agent:Agent, steps:int = 100, steer, throttle = agent.get_actions(detection_surface_area, error) error, detection_surface_area, img, collision_detected = world.step( steer=steer, throttle=throttle) - agent.show_error() + #agent.show_error() if save: recorder.add_image(img=img) diff --git a/src/Active-Lane-Keeping-Assistant/world.py b/src/Active-Lane-Keeping-Assistant/world.py index 13348785e4..2c4315f9ec 100644 --- a/src/Active-Lane-Keeping-Assistant/world.py +++ b/src/Active-Lane-Keeping-Assistant/world.py @@ -121,7 +121,7 @@ def reset(self) -> tuple[float, float, np.ndarray, bool]: self.collision_sensor.listen(lambda e: {self._set_collision()}) self.initialized = True - return self._change_to_left_lane() + return 0.0, 0.0, np.zeros((self.image_height, self.image_width, 3)), False def _set_collision(self) -> None: """Helper to set collision_detected to True.