MCPcopy Index your code
hub / github.com/google-deepmind/dm_control / from_xml_path

Method from_xml_path

dm_control/mujoco/engine.py:475–485  ·  view source on GitHub ↗

A named constructor from a path to an MJCF XML file. Args: file_path: String containing path to model definition file. Returns: A new `Physics` instance.

(cls, file_path)

Source from the content-addressed store, hash-verified

473
474 @classmethod
475 def from_xml_path(cls, file_path):
476 """A named constructor from a path to an MJCF XML file.
477
478 Args:
479 file_path: String containing path to model definition file.
480
481 Returns:
482 A new `Physics` instance.
483 """
484 model = wrapper.MjModel.from_xml_path(file_path)
485 return cls.from_model(model)
486
487 @classmethod
488 def from_binary_path(cls, file_path):

Callers 3

test_export_modelMethod · 0.45
setUpMethod · 0.45
reload_from_xml_pathMethod · 0.45

Calls 1

from_modelMethod · 0.80

Tested by 2

test_export_modelMethod · 0.36
setUpMethod · 0.36