MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / to_xml

Method to_xml

dm_control/mjcf/element.py:1083–1093  ·  view source on GitHub ↗
(self, prefix_root=None, debug_context=None,
             *,
             precision=constants.XML_DEFAULT_PRECISION,
             zero_threshold=0,
             filename_with_hash=True)

Source from the content-addressed store, hash-verified

1081 return prefix + self._attachment.namescope.name + constants.PREFIX_SEPARATOR
1082
1083 def to_xml(self, prefix_root=None, debug_context=None,
1084 *,
1085 precision=constants.XML_DEFAULT_PRECISION,
1086 zero_threshold=0,
1087 filename_with_hash=True):
1088 xml_element = (super().to_xml(prefix_root, debug_context,
1089 precision=precision,
1090 zero_threshold=zero_threshold,
1091 filename_with_hash=filename_with_hash))
1092 xml_element.set('name', self.prefixed_identifier(prefix_root))
1093 return xml_element
1094
1095 @property
1096 def full_identifier(self):

Callers

nothing calls this directly

Calls 3

prefixed_identifierMethod · 0.95
setMethod · 0.80
to_xmlMethod · 0.45

Tested by

no test coverage detected