weldx.transformations.CoordinateSystemManager#

class weldx.transformations.CoordinateSystemManager(root_coordinate_system_name, coordinate_system_manager_name=None, time_ref=None)#

Handles hierarchical dependencies between multiple coordinate systems.

Notes

Learn how to use this class by reading the Tutorial.

Construct a coordinate system manager.

Parameters
  • root_coordinate_system_name (str) – Name of the root coordinate system.

  • coordinate_system_manager_name (Optional[str]) – Name of the coordinate system manager. If None is passed, a default name is chosen.

  • time_ref (Union[Timestamp, str, Time, None]) – A reference timestamp. If it is defined, all time dependent information returned by the CoordinateSystemManager will refer to it by default.

Return type

CoordinateSystemManager

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_axis_vectors

Create a coordinate system and add it to the CoordinateSystemManager.

create_cs_from_euler

Create a coordinate system and add it to the coordinate system manager.

delete_cs

Delete a coordinate system from the coordinate system manager.

delete_data

Remove the assigned data with given name.

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_data_system_name

Get the name of the data's reference 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 coordinate systems of the coordinate system manager.

plot_graph

Plot the graph of the coordinate system manager.

relabel

Rename one or more nodes of the graph.

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.

data_names

Get the names of the attached data sets.

graph

Get the internal graph.

has_reference_time

Return True if the coordinate system manager has a reference time.

lcs

Get a list of all attached LocalCoordinateSystem instances.

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.

subsystem_info

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.