MCPcopy Create free account
hub / github.com/Robbyant/lingbot-map / __init__

Method __init__

demo_render/rgbd_render/camera.py:32–37  ·  view source on GitHub ↗
(self, eye: np.ndarray, center: np.ndarray,
                 up: np.ndarray, fov_deg: float = 60.0)

Source from the content-addressed store, hash-verified

30 __slots__ = ('eye', 'center', 'up', 'fov_deg')
31
32 def __init__(self, eye: np.ndarray, center: np.ndarray,
33 up: np.ndarray, fov_deg: float = 60.0):
34 self.eye = np.asarray(eye, dtype=np.float32)
35 self.center = np.asarray(center, dtype=np.float32)
36 self.up = np.asarray(up, dtype=np.float32)
37 self.fov_deg = fov_deg
38
39 def w2c(self) -> np.ndarray:
40 """W2C (4x4) in OpenCV convention. Rows of R: [right, down, forward]."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected