Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit cbda401

Browse files
committed
[Python 3] fix xml API use
1 parent 133d411 commit cbda401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dynamic_graph/sot/dynamic_pinocchio/humanoid_robot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _removeMimicJoints(self, urdfFile=None, urdfString=None):
142142
for e in root.iter('joint'):
143143
if 'name' in e.attrib:
144144
name = e.attrib['name']
145-
for c in e._children:
145+
for c in e:
146146
if hasattr(c, 'tag') and c.tag == 'mimic':
147147
mimicJoints.append(name)
148148
self.removeJoints(mimicJoints)

0 commit comments

Comments
 (0)