From 233a3a1698be7038ec3dd050ca10b547b4b3324c Mon Sep 17 00:00:00 2001 From: David Nie <50166287+Morphlng@users.noreply.github.com> Date: Sun, 7 Apr 2024 23:59:07 +0800 Subject: [PATCH] Fix default value setting of hpr (#682) --- metadrive/component/sensors/base_camera.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()