Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt

Use this file to discover all available pages before exploring further.

ZedCamera

Inherits from: Camera No class docstring.

Inherited methods

  • From Camera: getData, getCameraIntrinsics, setCameraIntrinsics, getCameraSettings, setCameraSettings

init

ZedCamera.__init__(resolution: Union[str, None] = 'AUTO', fps: Union[int, None] = 30, positional_tracking: bool = False)
No docstring provided.
Arguments
resolution (Union[str, None])
Union[str, None]
No description provided.
fps (Union[int, None])
Union[int, None]
No description provided.
positional_tracking (bool)
bool
No description provided.

getImage

ZedCamera.getImage(image_type: str = 'rgb', camera_name: str = 'left')
No docstring provided.
Arguments
image_type (str)
str
No description provided.
camera_name (str)
str
No description provided.

getStereoImagePair

ZedCamera.getStereoImagePair() -> tuple
Get a synchronized pair of left and right images for stereo vision.
Returns
returns
tuple

getExtrinsics

ZedCamera.getExtrinsics(source_image_frame: str, target_image_frame: str) -> np.ndarray
Get the transform of the target sensor frame with respect to the source sensor frame as a 4x4 homogeneous transformation matrix (np.ndarray) This transform transforms a 3D point (in meters) from the source frame to the target frame.
Arguments
source_image_frame (str)
str
required
the frame of the source sensor. Valid values are ‘color’, ‘rgb’, ‘left’, ‘right’
target_image_frame (str)
str
required
the frame of the target sensor. Valid values are ‘color’, ‘rgb’, ‘left’, ‘right’
Returns
np.ndarray
np.ndarray
4x4 homogeneous transformation matrix

getPose

ZedCamera.getPose()
No docstring provided.

getPosition

ZedCamera.getPosition()
No docstring provided.

getOrientation

ZedCamera.getOrientation()
No docstring provided.

getCameraMatrix

ZedCamera.getCameraMatrix(image_type: str = None) -> np.ndarray
Get the camera matrix K as a numpy array of shape (3, 3) K = [[fx, 0, cx], [0, fy, cy], [0, 0, 1]]
Arguments
image_type (str)
str
str, Describes which camera sensor to get the intrinsics of. Valid image_types are: ‘left’, ‘color’, ‘rgb’ (all refer to left camera), or ‘right’
Returns
np.ndarray
np.ndarray
camera matrix

getDistortionCoefficients

ZedCamera.getDistortionCoefficients(image_type: str = 'left') -> np.ndarray
Get distortion coefficients as a numpy array of shape (5,)
Arguments
image_type (str)
str
str, Describes which camera sensor to get the intrinsics of. Valid image_types are: ‘left’, ‘right’
Returns
np.ndarray
np.ndarray
distortion coefficients