Skip to content

Commit

Permalink
Fix default value setting of hpr (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphlng authored Apr 7, 2024
1 parent b19d7a4 commit 233a3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadrive/component/sensors/base_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 233a3a1

Please sign in to comment.