py3dframe.FrameTree.connect_frame#

FrameTree.connect_frame(name, frame, parent_name=None)[source]#

Add a Frame to the FrameTree.

If the parent_name is None (equivalent to ‘root’), the frame is added as the root frame (Canonical frame of \(\mathcal{R}^3\)). Otherwise, it is added as a child of the specified parent frame.

See also

FrameTree.disconnect_frame() : Remove a frame from the FrameTree.

Parameters:
  • name (str) – The name of the frame to add.

  • frame (Frame) – The Frame object to add.

  • parent_name (Optional[str], optional) – The name of the parent frame. If None, the frame is added as the root frame. Default is None.

Return type:

None