weldx.transformations.LocalCoordinateSystem#

class weldx.transformations.LocalCoordinateSystem(orientation=None, coordinates=None, time=None, time_ref=None, construction_checks=True)#

Defines a local cartesian coordinate system in 3d.

Notes

Learn how to use this class by reading the tutorial <tutorials/transformations_01_coordinate_systems>.

Construct a cartesian coordinate system.

Parameters:
Returns:

Cartesian coordinate system

Return type:

LocalCoordinateSystem

Methods

as_euler

Return Euler angle representation of the coordinate system orientation.

as_rotation

Get a scipy.Rotation object from the coordinate system orientation.

from_axis_vectors

Create a LCS from two or more coordinate axes.

from_euler

Construct a local coordinate system from an euler sequence.

interp_time

Interpolates the data in time.

invert

Get a local coordinate system defining the parent in the child system.

plot

Plot the coordinate system.

reset_reference_time

Reset the reference time of the coordinate system.

Attributes

coordinates

Get the coordinate systems coordinates.

dataset

Get the underlying xarray.Dataset with ordered dimensions.

has_reference_time

Return True if the coordinate system has a reference time.

has_timeseries

Return True if the system has a TimeSeries component.

is_time_dependent

Return True if the coordinate system is time dependent.

is_unity_rotation

Return true if the LCS represents a unity rotation/orientations value.

is_unity_translation

Return true if the LCS has a zero translation/coordinates value.

orientation

Get the coordinate systems orientation matrix.

reference_time

Get the coordinate systems reference time.

time

Get the time union of the local coordinate system (None if system is static).