Dynamic State¶
- class py123d.datatypes.vehicle_state.DynamicStateSE2[source]¶
The dynamic state of a vehicle in SE2 (2D plane).
Public Data Attributes:
velocity_2d2D velocity vector.
acceleration_2d2D acceleration vector.
angular_velocityAngular velocity around the Z axis (yaw).
arrayNumPy array representation of shape (5,), indexed by
DynamicStateSE2Index.Inherited from
ArrayMixinarrayThe array representation of the geometric entity.
shapeReturn the shape of the array.
Public Methods:
from_array(array[, copy])Create a
DynamicStateSE2from NumPy array of shape (5,), indexed byDynamicStateSE2Index.Inherited from
ArrayMixinfrom_array(array[, copy])Create an instance from a NumPy array.
from_list(values)Create an instance from a list of values.
tolist()Convert the array to a Python list.
to_list()Convert the array to a Python list.
copy()Return a copy of the object with a copied array.
- copy()¶
Return a copy of the object with a copied array.
- Return type:
ArrayMixin
- classmethod from_list(values)¶
Create an instance from a list of values.
- Return type:
Self- Parameters:
values (list)
- __init__(velocity, acceleration, angular_velocity)[source]¶
Initialize a
DynamicStateSE2instance.
- classmethod from_array(array, copy=True)[source]¶
Create a
DynamicStateSE2from NumPy array of shape (5,), indexed byDynamicStateSE2Index.- Parameters:
- Return type:
- Returns:
A
DynamicStateSE2instance.
- class py123d.datatypes.vehicle_state.DynamicStateSE3[source]¶
The dynamic state of a vehicle in SE3 (3D space).
Public Data Attributes:
velocity_3d3D velocity vector.
velocity_2d2D velocity vector.
acceleration_3d3D acceleration vector.
acceleration_2d2D acceleration vector.
angular_velocity3D angular velocity vector.
arrayNumPy array representation of shape (9,), indexed by
DynamicStateSE3Index.dynamic_state_se2The
DynamicStateSE2projection of this SE3 dynamic state.Inherited from
ArrayMixinarrayThe array representation of the geometric entity.
shapeReturn the shape of the array.
Public Methods:
from_array(array[, copy])Create a
DynamicStateSE3from NumPy array of shape (9,), indexed byDynamicStateSE3Index.Inherited from
ArrayMixinfrom_array(array[, copy])Create an instance from a NumPy array.
from_list(values)Create an instance from a list of values.
tolist()Convert the array to a Python list.
to_list()Convert the array to a Python list.
copy()Return a copy of the object with a copied array.
- __init__(velocity, acceleration, angular_velocity)[source]¶
Initialize a
DynamicStateSE3instance.
- classmethod from_array(array, copy=True)[source]¶
Create a
DynamicStateSE3from NumPy array of shape (9,), indexed byDynamicStateSE3Index.- Parameters:
- Return type:
- Returns:
A
DynamicStateSE3instance.
- property array: ndarray[tuple[Any, ...], dtype[float64]]¶
NumPy array representation of shape (9,), indexed by
DynamicStateSE3Index.
- property dynamic_state_se2: DynamicStateSE2¶
The
DynamicStateSE2projection of this SE3 dynamic state.
- copy()¶
Return a copy of the object with a copied array.
- Return type:
ArrayMixin