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

Method enter_scope

dm_control/mjcf/base.py:164–177  ·  view source on GitHub ↗

Finds the root element of the given scope and returns it. This function allows the access to a nested scope that is a child of this element. The `scope_identifier` argument specifies the path to the child scope element. Args: scope_identifier: The path of the desired scope el

(self, scope_identifier)

Source from the content-addressed store, hash-verified

162
163 @abc.abstractmethod
164 def enter_scope(self, scope_identifier):
165 """Finds the root element of the given scope and returns it.
166
167 This function allows the access to a nested scope that is a child of this
168 element. The `scope_identifier` argument specifies the path to the child
169 scope element.
170
171 Args:
172 scope_identifier: The path of the desired scope element.
173
174 Returns:
175 An `mjcf.Element` object, or `None` if a scope element with the
176 specified path is not found.
177 """
178
179 @abc.abstractmethod
180 def get_attribute_xml_string(self, attribute_name, prefix_root=None):

Callers 1

testEnterScopeMethod · 0.45

Calls

no outgoing calls

Tested by 1

testEnterScopeMethod · 0.36