Ego Vehicle State¶
Ego State in SE(2)¶
- class py123d.datatypes.vehicle_state.EgoStateSE2[source]¶
The EgoStateSE2 represents the state of the ego vehicle in SE2 (2D space). It includes the rear axle pose, vehicle parameters, optional dynamic state, and optional timepoint.
Public Data Attributes:
rear_axle_se2The
PoseSE2of the rear axle in SE2.vehicle_parametersThe
VehicleParametersof the vehicle.dynamic_state_se2The
DynamicStateSE2of the vehicle.timepointThe
TimePointof the ego state, if available.tire_steering_angleThe tire steering angle of the ego state, if available.
center_se2The
PoseSE2of the center in SE2.bounding_box_se2The
BoundingBoxSE2of the ego vehicle.box_detection_se2The
BoxDetectionSE2projection of the ego vehicle.Public Methods:
from_rear_axle(rear_axle_se2, ...[, ...])Create an
EgoStateSE2from the rear axle pose.from_center(center_se2, dynamic_state_se2, ...)Create an
EgoStateSE2from the center pose.
- classmethod from_rear_axle(rear_axle_se2, dynamic_state_se2, vehicle_parameters, timepoint, tire_steering_angle=0.0)[source]¶
Create an
EgoStateSE2from the rear axle pose.- Parameters:
rear_axle_se2 (
PoseSE2) – The pose of the rear axle in SE2.dynamic_state_se2 (
DynamicStateSE2) – The dynamic state of the vehicle in SE2.vehicle_parameters (
VehicleParameters) – The parameters of the vehicle.timepoint (
TimePoint) – The timepoint of the state.tire_steering_angle (
float) – The tire steering angle, defaults to 0.0.
- Return type:
- Returns:
An instance of
EgoStateSE2.
- classmethod from_center(center_se2, dynamic_state_se2, vehicle_parameters, timepoint, tire_steering_angle=0.0)[source]¶
Create an
EgoStateSE2from the center pose.- Parameters:
center_se2 (
PoseSE2) – The pose of the center in SE2.dynamic_state_se2 (
DynamicStateSE2) – The dynamic state of the vehicle in SE2.vehicle_parameters (
VehicleParameters) – The parameters of the vehicle.timepoint (
TimePoint) – The timepoint of the state.tire_steering_angle (
float) – The tire steering angle, defaults to 0.0.
- Return type:
- Returns:
An instance of
EgoStateSE2.
- property vehicle_parameters: VehicleParameters¶
The
VehicleParametersof the vehicle.
- property dynamic_state_se2: DynamicStateSE2 | None¶
The
DynamicStateSE2of the vehicle.
- property bounding_box_se2: BoundingBoxSE2¶
The
BoundingBoxSE2of the ego vehicle.
- property box_detection_se2: BoxDetectionSE2¶
The
BoxDetectionSE2projection of the ego vehicle.
Ego State in SE(3)¶
- class py123d.datatypes.vehicle_state.EgoStateSE3[source]¶
The EgoStateSE3 represents the state of the ego vehicle in SE3 (3D space). It includes the rear axle pose, vehicle parameters, optional dynamic state, optional timepoint, and optional tire steering angle.
Public Data Attributes:
rear_axle_se3The
PoseSE3of the rear axle in SE3.rear_axle_se2The
PoseSE2of the rear axle in SE2.vehicle_parametersThe
VehicleParametersof the vehicle.dynamic_state_se3The
DynamicStateSE3of the vehicle.timepointThe
TimePointof the ego state, if available.tire_steering_angleThe tire steering angle of the ego state, if available.
center_se3The
PoseSE3of the vehicle center in SE3.center_se2The
PoseSE2of the vehicle center in SE2.bounding_box_se3The
BoundingBoxSE3of the ego vehicle.bounding_box_se2The
BoundingBoxSE2of the ego vehicle.box_detection_se3The
BoxDetectionSE3projection of the ego vehicle.box_detection_se2The
BoxDetectionSE2projection of the ego vehicle.ego_state_se2The
EgoStateSE2projection of this SE3 ego state.Public Methods:
from_center(center_se3, vehicle_parameters)Create an
EgoStateSE3from the center pose.from_rear_axle(rear_axle_se3, vehicle_parameters)Create an
EgoStateSE3from the rear axle pose.
- classmethod from_center(center_se3, vehicle_parameters, dynamic_state_se3=None, timepoint=None, tire_steering_angle=0.0)[source]¶
Create an
EgoStateSE3from the center pose.- Parameters:
center_se3 (
PoseSE3) – The center pose in SE3.vehicle_parameters (
VehicleParameters) – The parameters of the vehicle.dynamic_state_se3 (
Optional[DynamicStateSE3]) – The dynamic state of the vehicle, defaults to None.timepoint (
Optional[TimePoint]) – The timepoint of the state, defaults to None.tire_steering_angle (
float) – The tire steering angle, defaults to 0.0.
- Return type:
- Returns:
An
EgoStateSE3instance.
- classmethod from_rear_axle(rear_axle_se3, vehicle_parameters, dynamic_state_se3=None, timepoint=None, tire_steering_angle=0.0)[source]¶
Create an
EgoStateSE3from the rear axle pose.- Parameters:
rear_axle_se3 (
PoseSE3) – The pose of the rear axle in SE3.vehicle_parameters (
VehicleParameters) – The parameters of the vehicle.dynamic_state_se3 (
Optional[DynamicStateSE3]) – The dynamic state of the vehicle, defaults to None.timepoint (
Optional[TimePoint]) – The timepoint of the state, defaults to None.tire_steering_angle (
float) – The tire steering angle, defaults to 0.0.
- Return type:
- Returns:
An
EgoStateSE3instance.
- property vehicle_parameters: VehicleParameters¶
The
VehicleParametersof the vehicle.
- property dynamic_state_se3: DynamicStateSE3 | None¶
The
DynamicStateSE3of the vehicle.
- property bounding_box_se3: BoundingBoxSE3¶
The
BoundingBoxSE3of the ego vehicle.
- property bounding_box_se2: BoundingBoxSE2¶
The
BoundingBoxSE2of the ego vehicle.
- property box_detection_se3: BoxDetectionSE3¶
The
BoxDetectionSE3projection of the ego vehicle.
- property box_detection_se2: BoxDetectionSE2¶
The
BoxDetectionSE2projection of the ego vehicle.
- property ego_state_se2: EgoStateSE2¶
The
EgoStateSE2projection of this SE3 ego state.