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.
Camera
Inherits from: Sensor
Abstract base class for camera sensors.
Extends the base Sensor class with camera-specific functionality
including intrinsic parameter management and image capture.
Attributes:
settings (CameraSettings): Camera configuration and parameters
init
Camera.__init__() -> None
Initialize camera with default settings.
getImage
Camera.getImage() -> Image
Return the image from camera.
Captures and returns the current image from the camera sensor.
The captured image with metadata
Must be implemented by subclasses
getData
Camera.getData() -> Image
Get the image from the camera.
Implements the Sensor interface by delegating to getImage().
The captured image from the camera
getCameraIntrinsics
Camera.getCameraIntrinsics() -> Optional[tuple[float, float, float, float]]
Get the intrinsic parameters for the camera.
Retrieves the camera’s intrinsic calibration parameters used for
image projection and rectification.
returns
Optional[tuple[float, float, float, float]]
setCameraIntrinsics
Camera.setCameraIntrinsics(fx: float, fy: float, cx: float, cy: float) -> None
Set the intrinsic parameters for the camera.
Configures the camera’s intrinsic calibration parameters for
accurate image projection and rectification.
Focal length in x direction (pixels)
Focal length in y direction (pixels)
Principal point x coordinate (pixels)
Principal point y coordinate (pixels)
getCameraSettings
Camera.getCameraSettings() -> CameraSettings
Get the camera settings.
Current camera configuration and parameters
setCameraSettings
Camera.setCameraSettings(settings: CameraSettings) -> None
Set the camera settings.
settings (CameraSettings)
New camera configuration to apply