Vehicle Parameters

class py123d.datatypes.vehicle_state.VehicleParameters[source]

Parameters that describe the physical dimensions of a vehicle.

Public Data Attributes:

half_width

Half the width of the vehicle.

half_length

Half the length of the vehicle.

half_height

Half the height of the vehicle.

vehicle_name

Name of the vehicle model.

width

Width of the vehicle.

length

Length of the vehicle.

height

Height of the vehicle.

wheel_base

Wheel base of the vehicle (longitudinal distance between front and rear axles).

rear_axle_to_center_vertical

Distance from the rear axle to the center of the vehicle (vertical).

rear_axle_to_center_longitudinal

Distance 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 VehicleParameters instance to a dictionary.


vehicle_name: str

Name of the vehicle model.

width: float

Width of the vehicle.

length: float

Length of the vehicle.

height: float

Height of the vehicle.

wheel_base: float

Wheel base of the vehicle (longitudinal distance between front and rear axles).

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:

VehicleParameters

Returns:

VehicleParameters instance.

property half_width: float

Half the width of the vehicle.

property half_length: float

Half the length of the vehicle.

property half_height: float

Half the height of the vehicle.

to_dict()[source]

Converts the VehicleParameters instance to a dictionary.

Return type:

dict

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)
Parameters:
Return type:

None