robopal.commons.xml_splice module¶
- class robopal.commons.xml_splice.RobotGenerator(scene: str = 'default', mount: str | List[str] = None, manipulator: str | List[str] = None, gripper: str | List[str] = None, **kwargs)[源代码]¶
基类:
objectXML Splicer class for splicing the robot with the given scene, mount, manipulator and gripper.
- 参数:
name -- robot name
scene -- scene name
mount -- mount name
manipulator -- manipulator name
gripper -- gripper name
kwargs -- other arguments
- add_all_component_from_xml(xml: str, goal_body: tuple, is_rename_tag=True) None[源代码]¶
For each input xml file, we extract the component we need, and append it into global tree.
- 参数:
xml -- xml file path
goal_body -- goal body, a tuple consist of id and name