Skip to content

Commit

Permalink
[BugFix] Fix initial poses of static objects in AI2THOR scenes to be …
Browse files Browse the repository at this point in the history
…not zero in CPU and GPU sim. (#836)
  • Loading branch information
StoneT2000 authored Feb 6, 2025
1 parent 50105bf commit e61885a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions mani_skill/utils/scene_builder/ai2thor/scene_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,9 @@ def build(
object["translation"][1] + 0,
]
pose = sapien.Pose(p=position, q=q)
builder.add_visual_from_file(str(model_path), pose=pose)
builder.add_nonconvex_collision_from_file(
str(model_path), pose=pose
)
builder.initial_pose = sapien.Pose()
builder.add_visual_from_file(str(model_path))
builder.add_nonconvex_collision_from_file(str(model_path))
builder.initial_pose = pose
builder.set_scene_idxs(env_idx)
actor = builder.build_static(name=f"{unique_id}_{actor_name}")
else:
Expand Down

0 comments on commit e61885a

Please sign in to comment.