robokudo.types.ros¶
ROS message type definitions.
This module provides Python class representations of common ROS message types. These classes are used to maintain compatibility with ROS message structures while working in pure Python environments.
The module includes:
Standard ROS header
Camera-related message types
Region of interest definitions
Classes¶
ROS message header type. |
|
ROS region of interest message type. |
|
ROS camera calibration and metadata message type. |
Module Contents¶
- class robokudo.types.ros.Header¶
-
Bases:
robokudo.types.core.TypeROS message header type.
Standard ROS message header containing sequence number, timestamp, and coordinate frame information.
- seq: int = 0¶
-
Sequence number
- frame_id: str = ''¶
-
Coordinate frame identifier
- stamp: float = 0.0¶
-
Time stamp in seconds
- class robokudo.types.ros.RegionOfInterest¶
-
Bases:
robokudo.types.core.TypeROS region of interest message type.
Defines a rectangular region within an image.
- x_offset: int = 0¶
-
X coordinate of top-left corner
- y_offset: int = 0¶
-
Y coordinate of top-left corner
- height: int = 0¶
-
Height of region in pixels
- width: int = 0¶
-
Width of region in pixels
- do_rectify: bool = False¶
-
Whether to rectify the region
- class robokudo.types.ros.CameraInfo¶
-
Bases:
robokudo.types.core.TypeROS camera calibration and metadata message type.
Contains camera calibration data and image metadata including: * Image dimensions * Distortion model and parameters * Camera matrices (K, R, P) * ROI and binning information
- height: int = 0¶
-
Image height in pixels
- width: int = 0¶
-
Image width in pixels
- distortion_model: str = ''¶
-
Name of distortion model
- D: typing_extensions.List[float] = []¶
-
Distortion parameters
- K: typing_extensions.List[float] = []¶
-
Intrinsic camera matrix (3x3)
- R: typing_extensions.List[float] = []¶
-
Rotation matrix (3x3)
- P: typing_extensions.List[float] = []¶
-
Projection matrix (3x4)
- binning_x: int = 0¶
-
Horizontal binning factor
- binning_y: int = 0¶
-
Vertical binning factor
- roi: RegionOfInterest¶
-
Region of interest