diff --git a/metadrive/component/sensors/base_camera.py b/metadrive/component/sensors/base_camera.py index 027344a55..752573926 100644 --- a/metadrive/component/sensors/base_camera.py +++ b/metadrive/component/sensors/base_camera.py @@ -159,7 +159,7 @@ def perceive( if position is None: position = constants.DEFAULT_SENSOR_OFFSET if hpr is None: - position = constants.DEFAULT_SENSOR_HPR + hpr = constants.DEFAULT_SENSOR_HPR # return camera to original state original_object = self.cam.getParent()