Ego Metadata¶
- class py123d.datatypes.EgoStateSE3Metadata[source]¶
Metadata that describes the physical dimensions of the ego vehicle.
Public Data Attributes:
half_widthHalf the width of the vehicle.
half_lengthHalf the length of the vehicle.
half_heightHalf the height of the vehicle.
rear_axle_to_center_longitudinalLongitudinal offset from the rear axle to the vehicle center (along the x-axis).
rear_axle_to_center_verticalVertical offset from the rear axle to the vehicle center (along the z-axis).
modality_typeReturns the name of the modality that this metadata describes.
center_to_imu_se3The center-to-IMU extrinsic
PoseSE3of the vehicle.heightHeight of the vehicle.
lengthLength of the vehicle.
rear_axle_to_imu_se3The rear axle-to-IMU extrinsic
PoseSE3of the vehicle.vehicle_nameName of the vehicle model.
wheel_baseWheel base of the vehicle (longitudinal distance between front and rear axles).
widthWidth of the vehicle.
Inherited from
BaseModalityMetadatamodality_typeReturns the type of the modality that this metadata describes.
modality_idOptional identifier for the modality, e.g. sensor ID for sensor modalities.
modality_keyReturns a unique key for this modality, combining type and id if applicable.
Public Methods:
from_dict(data_dict)Creates a EgoStateSE3Metadata instance from a dictionary.
to_dict()Converts the
EgoStateSE3Metadatainstance to a dictionary.Inherited from
BaseMetadatato_dict()Serialize the metadata instance to a plain Python dictionary.
from_dict(data_dict)Construct a metadata instance from a plain Python dictionary.
- __init__(vehicle_name, width, length, height, wheel_base, center_to_imu_se3, rear_axle_to_imu_se3)[source]¶
-
center_to_imu_se3:
PoseSE3¶ The center-to-IMU extrinsic
PoseSE3of the vehicle.Maps coordinates from the vehicle center frame to the IMU frame. The translation component gives the position of the vehicle center in the IMU frame.
-
rear_axle_to_imu_se3:
PoseSE3¶ The rear axle-to-IMU extrinsic
PoseSE3of the vehicle.Maps coordinates from the rear axle frame to the IMU frame. Identity for most datasets where the IMU is co-located with the rear axle.
- classmethod from_dict(data_dict)[source]¶
Creates a EgoStateSE3Metadata instance from a dictionary.
- Parameters:
data_dict (
dict) – Dictionary containing ego metadata.- Return type:
- Returns:
EgoStateSE3Metadata instance.
- property modality_id: str | SerialIntEnum | None¶
Optional identifier for the modality, e.g. sensor ID for sensor modalities. Can be a string or a SerialIntEnum.
- property modality_key: str¶
Returns a unique key for this modality, combining type and id if applicable.
- property rear_axle_to_center_longitudinal: float¶
Longitudinal offset from the rear axle to the vehicle center (along the x-axis).
- property rear_axle_to_center_vertical: float¶
Vertical offset from the rear axle to the vehicle center (along the z-axis).
- property modality_type: ModalityType¶
Returns the name of the modality that this metadata describes.
- to_dict()[source]¶
Converts the
EgoStateSE3Metadatainstance to a dictionary.- Return type:
- Returns:
Dictionary representation of the ego metadata.