Skip to content

Commit bc6633d

Browse files
committed
fix[urdf_env]: Also consider the initial orientation.
1 parent db50780 commit bc6633d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

urdfenvs/urdf_common/urdf_env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ def reset_obstacles(self) -> None:
396396
for obst_id, obstacle in self._obsts.items():
397397
if obstacle.type() == "urdf":
398398
pos = obstacle.position()
399-
vel = obstacle.velocity()
400-
ori = [1.0, 0.0, 0.0, 0.0]
399+
vel = obstacle.velocity() # [0.0, 0.0, 0.0]
400+
ori = obstacle.orientation().tolist()
401401
else:
402402
pos = obstacle.position(t=0).tolist()
403403
vel = obstacle.velocity(t=0).tolist()

0 commit comments

Comments
 (0)