weldx.transformations.CoordinateSystemManager.create_cs_from_yz_and_orientation¶
-
CoordinateSystemManager.
create_cs_from_yz_and_orientation
(coordinate_system_name, reference_system_name, vec_y, vec_z, positive_orientation=True, coordinates=None, time=None, lsc_child_in_parent=True)¶ Create a coordinate system and add it to the coordinate system manager.
This function uses the
from_yz_and_orientation
method of theLocalCoordinateSystem
class.- Parameters
coordinate_system_name (
str
) – Name of the new coordinate system.reference_system_name (
str
) – Name of the parent system. This must have been already added.vec_y – Vector defining the y-axis
vec_z – Vector defining the z-axis
positive_orientation – Set to True if the orientation should be positive and to False if not (Default value = True)
coordinates (
Union
[DataArray
,ndarray
,List
,None
]) – Coordinates of the origin.time (
Optional
[DatetimeIndex
]) – Time data for time dependent coordinate systems.lsc_child_in_parent (
bool
) – If set toTrue
, the passedLocalCoordinateSystem
instance describes the new system orientation towards is parent. IfFalse
, it describes how the parent system is positioned in its new child system.