Vehicle Parameters¶
- class py123d.datatypes.vehicle_state.VehicleParameters[source]¶
Parameters that describe the physical dimensions of a 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.
vehicle_nameName of the vehicle model.
widthWidth of the vehicle.
lengthLength of the vehicle.
heightHeight of the vehicle.
wheel_baseWheel base of the vehicle (longitudinal distance between front and rear axles).
rear_axle_to_center_verticalDistance from the rear axle to the center of the vehicle (vertical).
rear_axle_to_center_longitudinalDistance from the rear axle to the center of the vehicle (longitudinal).
Public Methods:
from_dict(data_dict)Creates a VehicleParameters instance from a dictionary.
to_dict()Converts the
VehicleParametersinstance to a dictionary.
-
rear_axle_to_center_vertical:
float¶ Distance from the rear axle to the center of the vehicle (vertical).
-
rear_axle_to_center_longitudinal:
float¶ Distance from the rear axle to the center of the vehicle (longitudinal).
- classmethod from_dict(data_dict)[source]¶
Creates a VehicleParameters instance from a dictionary.
- Parameters:
data_dict (
dict) – Dictionary containing vehicle parameters.- Return type:
- Returns:
VehicleParameters instance.
- to_dict()[source]¶
Converts the
VehicleParametersinstance to a dictionary.- Return type:
- Returns:
Dictionary representation of the vehicle parameters.
- __init__(vehicle_name, width, length, height, wheel_base, rear_axle_to_center_vertical, rear_axle_to_center_longitudinal)¶
-
rear_axle_to_center_vertical: