weldx.transformations.
CoordinateSystemManager
Handles hierarchical dependencies between multiple coordinate systems.
Notes
Learn how to use this class by reading the Tutorial.
Construct a coordinate system manager.
root_coordinate_system_name (str) – Name of the root coordinate system.
coordinate_system_manager_name (str) – Name of the coordinate system manager. If ‘None’ is passed, a default name is chosen.
time_ref (pandas.Timestamp) – A reference timestamp. If it is defined, all time dependent information returned by the CoordinateSystemManager will refer to it by default.
_graph (Optional[DiGraph]) – A graph that should be used internally. Do not set this parameter. It is only meant for class internal usage.
Optional
DiGraph
_subsystems – A dictionary containing data about the CSMs attached subsystems. This parameter should never be set manually. It is for internal usage only.
Methods
add_cs
Add a coordinate system to the coordinate system manager.
assign_data
Assign spatial data to a coordinate system.
create_cs
Create a coordinate system and add it to the coordinate system manager.
create_cs_from_euler
create_cs_from_xy_and_orientation
create_cs_from_xyz
create_cs_from_xz_and_orientation
create_cs_from_yz_and_orientation
delete_cs
Delete a coordinate system from the coordinate system manager.
get_child_system_names
Get a list with the passed coordinate systems children.
get_cs
Get a coordinate system in relation to another reference system.
get_data
Get the specified data, optionally transformed into any coordinate system.
get_parent_system_name
Get the name of a coordinate systems parent system.
has_coordinate_system
Return ‘True’ if a coordinate system with specified name already exists.
has_data
Return ‘True’ if the desired coordinate system owns the specified data.
interp_time
Interpolates the coordinate systems in time.
is_neighbor_of
Get a boolean result, specifying if 2 coordinate systems are neighbors.
merge
Merge another coordinate system managers into the current instance.
neighbors
Get a list of neighbors of a certain coordinate system.
number_of_neighbors
Get the number of neighbors of a certain coordinate system.
plot
Plot the graph of the coordinate system manager.
remove_subsystems
Remove all subsystems from the coordinate system manager.
time_union
Get the time union of all or selected local coordinate systems.
transform_data
Transform spatial data from one coordinate system to another.
unmerge
Undo previous merges and return a list of all previously merged instances.
Attributes
coordinate_system_names
Get the names of all contained coordinate systems.
graph
Get the internal graph.
has_reference_time
Return True if the coordinate system manager has a reference time.
True
lcs
Get a list of all attached LocalCoordinateSystem instances.
LocalCoordinateSystem
lcs_time_dependent
Get a list of all attached time dependent LocalCoordinateSystem instances.
name
Get the name of the coordinate system manager instance.
number_of_coordinate_systems
Get the number of coordinate systems inside the coordinate system manager.
number_of_subsystems
Get the number of attached subsystems.
reference_time
Get the reference time of the CoordinateSystemManager.
root_system_name
Get the name of the root system.
sub_system_data
Get a dictionary containing data about the attached subsystems.
subsystem_names
Get the names of all subsystems.
subsystems
Extract all subsystems from the CoordinateSystemManager.
uses_absolute_times
Return True if the CSM or one of its coord.