ostk.physics.coordinate.Transform¶
- class Transform(self: ostk.physics.coordinate.Transform, instant: ostk.physics.time.Instant, translation: numpy.ndarray[numpy.float64[3, 1]], velocity: numpy.ndarray[numpy.float64[3, 1]], orientation: ostk.mathematics.geometry.d3.transformation.rotation.Quaternion, angular_velocity: numpy.ndarray[numpy.float64[3, 1]], type: ostk::physics::coordinate::Transform::Type)¶
Bases:
pybind11_object
Transform.
- Reference:
https://en.wikipedia.org/wiki/Active_and_passive_transformation
- Reference:
Constructs a transform.
- Parameters:
instant (Instant) -- Instant.
translation (numpy.ndarray) -- Translation.
velocity (numpy.ndarray) -- Velocity.
orientation (Quaternion) -- Orientation.
angular_velocity (numpy.ndarray) -- Angular velocity.
type (Type) -- Type.
Methods
Access the angular velocity.
Access the instant.
Access the orientation.
Access the translation.
Access the velocity.
Create an active transform.
Apply the transform to a position.
Apply the transform to a vector.
Apply the transform to a velocity.
Get the angular velocity.
Get the instant.
Get the inverse.
Get the orientation.
Get the translation.
Get the velocity.
Get identity transform.
Check if the transform is defined.
Check if the transform is the identity.
Create a passive transform.
Get undefined transform.
- class Type(self: ostk.physics.coordinate.Transform.Type, value: int)¶
Bases:
pybind11_object
Transform type.
Members:
- Undefined :
Undefined type.
- Active :
Active type.
- Passive :
Passive type.
- property name¶
- __mul__( ) ostk.physics.coordinate.Transform ¶
Multiplication operator.
- access_angular_velocity( ) numpy.ndarray[numpy.float64[3, 1]] ¶
Access the angular velocity.
- Returns:
Angular velocity.
- Return type:
- access_instant( ) ostk.physics.time.Instant ¶
Access the instant.
- Returns:
Instant.
- Return type:
- access_orientation( ) ostk.mathematics.geometry.d3.transformation.rotation.Quaternion ¶
Access the orientation.
- Returns:
Orientation.
- Return type:
Quaternion
- access_translation( ) numpy.ndarray[numpy.float64[3, 1]] ¶
Access the translation.
- Returns:
Translation.
- Return type:
- access_velocity( ) numpy.ndarray[numpy.float64[3, 1]] ¶
Access the velocity.
- Returns:
Velocity.
- Return type:
- static active(
- instant: ostk.physics.time.Instant,
- translation: numpy.ndarray[numpy.float64[3, 1]],
- velocity: numpy.ndarray[numpy.float64[3, 1]],
- orientation: ostk.mathematics.geometry.d3.transformation.rotation.Quaternion,
- angular_velocity: numpy.ndarray[numpy.float64[3, 1]],
- translation: numpy.ndarray[numpy.float64[3, 1]],
Create an active transform.
- Parameters:
instant (Instant) -- Instant.
translation (numpy.ndarray) -- Translation.
velocity (numpy.ndarray) -- Velocity.
orientation (Quaternion) -- Orientation.
angular_velocity (numpy.ndarray) -- Angular velocity.
- Returns:
Active transform.
- Return type:
- apply_to_position(
- self: ostk.physics.coordinate.Transform,
- position: numpy.ndarray[numpy.float64[3, 1]],
Apply the transform to a position.
- Parameters:
position (Position) -- Position.
- Returns:
Transformed position.
- Return type:
- apply_to_vector(
- self: ostk.physics.coordinate.Transform,
- vector: numpy.ndarray[numpy.float64[3, 1]],
Apply the transform to a vector.
- Parameters:
vector (numpy.ndarray) -- Vector.
- Returns:
Transformed vector.
- Return type:
- apply_to_velocity(
- self: ostk.physics.coordinate.Transform,
- position: numpy.ndarray[numpy.float64[3, 1]],
- velocity: numpy.ndarray[numpy.float64[3, 1]],
- position: numpy.ndarray[numpy.float64[3, 1]],
Apply the transform to a velocity.
- Parameters:
- Returns:
Transformed velocity.
- Return type:
- get_angular_velocity( ) numpy.ndarray[numpy.float64[3, 1]] ¶
Get the angular velocity.
- Returns:
Angular velocity.
- Return type:
- get_instant( ) ostk.physics.time.Instant ¶
Get the instant.
- Returns:
Instant.
- Return type:
- get_inverse( ) ostk.physics.coordinate.Transform ¶
Get the inverse.
- Returns:
Inverse.
- Return type:
- get_orientation( ) ostk.mathematics.geometry.d3.transformation.rotation.Quaternion ¶
Get the orientation.
- Returns:
Orientation.
- Return type:
Quaternion
- get_translation( ) numpy.ndarray[numpy.float64[3, 1]] ¶
Get the translation.
- Returns:
Translation.
- Return type:
- get_velocity( ) numpy.ndarray[numpy.float64[3, 1]] ¶
Get the velocity.
- Returns:
Velocity.
- Return type:
- static identity(arg0: ostk.physics.time.Instant) ostk.physics.coordinate.Transform ¶
Get identity transform.
- Returns:
Identity transform.
- Return type:
- is_defined(self: ostk.physics.coordinate.Transform) bool ¶
Check if the transform is defined.
- Returns:
True if the transform is defined.
- Return type:
- is_identity(self: ostk.physics.coordinate.Transform) bool ¶
Check if the transform is the identity.
- Returns:
True if the transform is the identity.
- Return type:
- static passive(
- instant: ostk.physics.time.Instant,
- translation: numpy.ndarray[numpy.float64[3, 1]],
- velocity: numpy.ndarray[numpy.float64[3, 1]],
- orientation: ostk.mathematics.geometry.d3.transformation.rotation.Quaternion,
- angular_velocity: numpy.ndarray[numpy.float64[3, 1]],
- translation: numpy.ndarray[numpy.float64[3, 1]],
Create a passive transform.
- Parameters:
instant (Instant) -- Instant.
translation (numpy.ndarray) -- Translation.
velocity (numpy.ndarray) -- Velocity.
orientation (Quaternion) -- Orientation.
angular_velocity (numpy.ndarray) -- Angular velocity.
- Returns:
Passive transform.
- Return type:
- static undefined() ostk.physics.coordinate.Transform ¶
Get undefined transform.
- Returns:
Undefined transform.
- Return type: