radofT

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 4.5, Creation date: 2019-03-21, Last change: 2025-09-14

returns only the radian turning angles of a list of T@ matrices



See Also: TofPLpath , PLofT

Example Illustration

 missing image of radofT(T0)

Syntax

w=radofT(T0)

Input Parameter

T0: List of HT matrices in 2D

Output Parameter

w: list of angles (atan2)

Examples


radofT( TofPLpath(PLsample(9)))




Copyright 2019-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, radofT, is designed to compute the radian turning angles from a list of homogeneous transformation (HT) matrices in 2D. It is part of the SG-Library and was introduced in SolidGeometry 4.5.

Input Parameters

Output Results

Algorithm Steps

  1. The function first checks if the second dimension of T0 is 3, which confirms that the input matrices are 2D HT matrices.
  2. If the condition is met, it calculates the angles using atan2(T0(1,2,:), T0(1,1,:)). This computes the angle of rotation from the transformation matrix.
  3. The result is then squeezed to remove any singleton dimensions, resulting in a vector of angles w.
  4. If the input matrices are not 2D HT matrices, the function sets w to an empty array and issues a warning stating that only T2 matrices are currently supported.
  5. If no output is requested (i.e., nargout==0), the function proceeds to visualize the transformation path:
Algorithm explaination created using ChatGPT on 2025-08-18 22:50. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21