twizy_description/src/twizy_description/robot_description.py
def xml(self, doc, robot):
        """Represent this link and all its children as xml"""

        link = doc.createElement('link')
        link.setAttribute('name', self.name)

        if len(self.visuals) > 0:
            for visual in self.visuals:
                visual.xml(doc, link)

        robot.appendChild(link)

        for child in self.children:
            child.xml(doc, robot)
Represent this link and all its children as xml
Represent this link and all its children as xml
Represent this link and all its children as xml
def xml(self, doc, robot):
        link = doc.createElement('link')
        link.setAttribute('name', self.name)
        if len(self.visuals) > 0:
            for visual in self.visuals:
                visual.xml(doc, link)
        robot.appendChild(link)
        for child in self.children:
            child.xml(doc, robot)
def xml ( self , doc , robot ) : link = doc . createElement ( 'link' ) link . setAttribute ( 'name' , self . name ) if len ( self . visuals ) > 0 : for visual in self . visuals : visual . xml ( doc , link ) robot . appendChild ( link ) for child in self . children : child . xml ( doc , robot )
Represent this link and all its children as xml
Represent this link and all its children as xml
"""Represent this link and all its children as xml"""
self
doc
robot