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)
| 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): |