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)
| 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. |
nothing calls this directly
no test coverage detected