Simulator: update MetaDrive to latest (#32576)

* bump metadrive

* comment
old-commit-hash: aa081f574833bcb1db4c234b9ee3d5bcd303a6de
This commit is contained in:
Hoang Bui
2024-05-30 14:25:21 -04:00
committed by GitHub
parent 2a6e025183
commit 86e2641636
3 changed files with 5 additions and 4 deletions
Generated
+2 -2
View File
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e15c700ef7dd958815caaec9f2747c560fe1a77990275354bdfe2ff3ac38457
size 613262
oid sha256:849a4d16b80379689c29baf876cc4fb5f522e0c8ec29f9d3f8858755a60959b3
size 613190
+2 -1
View File
@@ -140,7 +140,8 @@ inputs = "*"
Jinja2 = "*"
lru-dict = "*"
matplotlib = "*"
metadrive-simulator = { version = "0.4.2.3", markers = "platform_machine != 'aarch64'" } # no linux/aarch64 wheels for certain dependencies
# No release for this fix https://github.com/metadriverse/metadrive/issues/632. Pinned to this commit until next release
metadrive-simulator = {git = "https://github.com/metadriverse/metadrive.git", rev ="233a3a1698be7038ec3dd050ca10b547b4b3324c", markers = "platform_machine != 'aarch64'" } # no linux/aarch64 wheels for certain dependencies
mpld3 = "*"
mypy = "*"
myst-parser = "*"
@@ -88,7 +88,7 @@ def metadrive_process(dual_camera: bool, config: dict, camera_array, wide_camera
cam.get_cam().reparentTo(env.vehicle.origin)
cam.get_cam().setPos(C3_POSITION)
cam.get_cam().setHpr(C3_HPR)
img = cam.perceive(clip=False)
img = cam.perceive(to_float=False)
if type(img) != np.ndarray:
img = img.get() # convert cupy array to numpy
return img