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

Method from_binary_path

dm_control/mujoco/engine.py:488–498  ·  view source on GitHub ↗

A named constructor from a path to an MJB model binary 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

486
487 @classmethod
488 def from_binary_path(cls, file_path):
489 """A named constructor from a path to an MJB model binary file.
490
491 Args:
492 file_path: String containing path to model definition file.
493
494 Returns:
495 A new `Physics` instance.
496 """
497 model = wrapper.MjModel.from_binary_path(file_path)
498 return cls.from_model(model)
499
500 def reload_from_xml_string(self, xml_string, assets=None):
501 """Reloads the `Physics` instance from a string containing an MJCF XML file.

Callers

nothing calls this directly

Calls 1

from_modelMethod · 0.80

Tested by

no test coverage detected