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

Method from_byte_string

dm_control/mujoco/engine.py:469–472  ·  view source on GitHub ↗

A named constructor from a model binary as a byte string.

(cls, byte_string)

Source from the content-addressed store, hash-verified

467
468 @classmethod
469 def from_byte_string(cls, byte_string):
470 """A named constructor from a model binary as a byte string."""
471 model = wrapper.MjModel.from_byte_string(byte_string)
472 return cls.from_model(model)
473
474 @classmethod
475 def from_xml_path(cls, file_path):

Callers

nothing calls this directly

Calls 1

from_modelMethod · 0.80

Tested by

no test coverage detected