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

Method __init__

dm_control/mujoco/engine.py:1009–1031  ·  view source on GitHub ↗

Initializes a new `MovableCamera`. Args: physics: Instance of `Physics`. height: Optional image height. Defaults to 240. width: Optional image width. Defaults to 320. max_geom: Optional integer specifying the maximum number of geoms that can be rendered in the sa

(
      self,
      physics: Physics,
      height: int = 240,
      width: int = 320,
      max_geom: Optional[int] = None,
      scene_callback: Optional[Callable[[Physics, mujoco.MjvScene],
                                        None]] = None,
  )

Source from the content-addressed store, hash-verified

1007 """
1008
1009 def __init__(
1010 self,
1011 physics: Physics,
1012 height: int = 240,
1013 width: int = 320,
1014 max_geom: Optional[int] = None,
1015 scene_callback: Optional[Callable[[Physics, mujoco.MjvScene],
1016 None]] = None,
1017 ):
1018 """Initializes a new `MovableCamera`.
1019
1020 Args:
1021 physics: Instance of `Physics`.
1022 height: Optional image height. Defaults to 240.
1023 width: Optional image width. Defaults to 320.
1024 max_geom: Optional integer specifying the maximum number of geoms that can
1025 be rendered in the same scene. If None this will be chosen automatically
1026 based on the estimated maximum number of renderable geoms in the model.
1027 scene_callback: Called after the scene has been created and before
1028 it is rendered. Can be used to add more geoms to the scene.
1029 """
1030 super().__init__(physics=physics, height=height, width=width, camera_id=-1,
1031 max_geom=max_geom, scene_callback=scene_callback)
1032
1033 def get_pose(self):
1034 """Returns the pose of the camera.

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected