Skip to content

Commit

Permalink
fix urdf loader fix root
Browse files Browse the repository at this point in the history
  • Loading branch information
fbxiang committed Nov 1, 2023
1 parent 2781a1f commit e6b65b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/py_package/wrapper/urdf_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,13 @@ def _parse_urdf(self, urdf_string, package_dir):
if len(self.link2child_joints[root]) == 0:
actor_builders.append(self._parse_actor(root))
else:
if root == robot.base_link.name:
fix_base = self.fix_root_link
else:
fix_base = False

articulation_builders.append(
self._parse_articulation(root, root == robot.base_link.name)
self._parse_articulation(root, fix_base)
)

extra = ET.fromstring(robot.other_xml)
Expand Down

0 comments on commit e6b65b3

Please sign in to comment.