weldx.CoordinateSystemManager.create_cs#
- CoordinateSystemManager.create_cs(coordinate_system_name, reference_system_name, orientation=None, coordinates=None, time=None, time_ref=None, lcs_child_in_parent=True)#
Create a coordinate system and add it to the coordinate system manager.
This function uses the
__init__
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.orientation (
Union
[DataArray
,_SupportsArray
[dtype
[Any
]],_NestedSequence
[_SupportsArray
[dtype
[Any
]]],bool
,int
,float
,complex
,str
,bytes
,_NestedSequence
[Union
[bool
,int
,float
,complex
,str
,bytes
]],Rotation
,None
]) – Matrix of 3 orthogonal column vectors which represent the coordinate systems orientation. Keep in mind, that the columns of the corresponding orientation matrix is equal to the normalized orientation vectors. So each orthogonal transformation matrix can also be provided as orientation. Passing a scipy.spatial.transform.Rotation object is also supported.coordinates (
Union
[DataArray
,_SupportsArray
[dtype
[Any
]],_NestedSequence
[_SupportsArray
[dtype
[Any
]]],bool
,int
,float
,complex
,str
,bytes
,_NestedSequence
[Union
[bool
,int
,float
,complex
,str
,bytes
]],Quantity
,None
]) – Coordinates of the origin.time (
Union
[DatetimeIndex
,datetime64
,list
[str
],Time
,TimedeltaIndex
,Quantity
,timedelta64
,Timestamp
,str
,TimeDependent
,None
]) – Time data for time dependent coordinate systems.time_ref (
Union
[Timestamp
,str
,Time
,None
]) – Reference time for time dependent coordinate systemslcs_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.