Skip to content

Commit 86376ca

Browse files
committed
[Bugfix] call set_base_pose in SapienPlanningWorld during init and update
1 parent 7986c16 commit 86376ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mplib/sapien_utils/conversion.py

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def __init__(
9999
joint_names=[j.name for j in articulation.active_joints],
100100
verbose=False,
101101
)
102+
articulated_model.set_base_pose(articulation.root_pose) # type: ignore
102103
articulated_model.set_qpos(
103104
articulation.qpos, # type: ignore
104105
full=True,
@@ -130,6 +131,7 @@ def update_from_simulation(self, *, update_attached_object: bool = True) -> None
130131
"""
131132
for articulation in self._sim_scene.get_all_articulations():
132133
if art := self.get_articulation(convert_object_name(articulation)):
134+
art.set_base_pose(articulation.root_pose) # type: ignore
133135
# set_qpos to update poses
134136
art.set_qpos(articulation.qpos, full=True) # type: ignore
135137
else:

0 commit comments

Comments
 (0)