Skip to content

Commit 711299e

Browse files
committed
fix
1 parent 278fc95 commit 711299e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

alignit/robots/xarmsim/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def get_observation(self):
199199
# TODO: Handle multiple cameras
200200
obs["rgb"] = image[:, :, ::-1]
201201
obs["depth"] = image_depth
202+
obs["depth"] = np.clip(obs["depth"], 0, 1)
202203

203204
return obs
204205

0 commit comments

Comments
 (0)