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

Method from_model

dm_control/mujoco/engine.py:446–449  ·  view source on GitHub ↗

A named constructor from a `wrapper.MjModel` instance.

(cls, model)

Source from the content-addressed store, hash-verified

444
445 @classmethod
446 def from_model(cls, model):
447 """A named constructor from a `wrapper.MjModel` instance."""
448 data = wrapper.MjData(model)
449 return cls(data)
450
451 @classmethod
452 def from_xml_string(cls, xml_string, assets=None):

Callers 4

from_xml_stringMethod · 0.80
from_byte_stringMethod · 0.80
from_xml_pathMethod · 0.80
from_binary_pathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected