Skip to content

Commit 8e4a037

Browse files
Format
1 parent 9bd931f commit 8e4a037

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

robosuite/models/robots/robot_model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,19 +202,19 @@ def add_mobile_base(self, mobile_base: MobileBaseModel):
202202
mount_support = find_elements(
203203
root=self.worldbody, tags="body", attribs={"name": mobile_base.correct_naming("support")}, return_first=True
204204
)
205-
205+
206206
# Create an intermediate body to act as what robot0_base previously was
207207
manipulator_mount = new_element("body", "manipulator_mount")
208-
209-
# Move content from robot0_base to the intermediate manipulator_mount body (arms, geoms),
208+
209+
# Move content from robot0_base to the intermediate manipulator_mount body (arms, geoms),
210210
# but skip inertial elements and freejoints to avoid conflicts and MuJoCo constraints
211211
for child in all_root_children:
212212
# Skip inertial elements to avoid duplicates with mobile base's own inertial
213213
# Skip freejoints since they can only be used at top level
214214
if child.tag not in ["inertial", "freejoint"]:
215215
manipulator_mount.append(deepcopy(child))
216216
root.remove(child)
217-
217+
218218
# Attach the manipulator_mount body to the mobile base support
219219
mount_support.append(manipulator_mount)
220220
self.merge_assets(mobile_base)

0 commit comments

Comments
 (0)