by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.2, Creation date: 2022-06-10, Last change: 2025-09-15
See Also: Ttransrel
, ezofchar
TN=Tofchar([T,relparam])
T: | char of ez, or empty for eye(4) | |
relparam: | additional relative parameters for Ttransrel |
TN: | new T matrix |
Tofchar('y') % ez = ey
Tofchar('x','roty',pi) % ez = x and rotated aorund ey
Tofchar('rotz',pi))
This function, Tofchar, is designed to create a homogeneous transformation (HT) frame based on spatial relations. It is part of the SG-Library and was introduced in SolidGeometry 5.2.
eye(4). It can also be a 1x3 vector.Ttransrel.T using getfuncparams.T is a character and corresponds to a valid axis, convert it to a transformation matrix using TofPez and ezofchar.T is a 1x3 vector, convert it to a transformation matrix using TofPez.T is a 4x4 matrix, remove the first element from varargin. Otherwise, set T to the identity matrix eye(4).varargin, apply Ttransrel to T with these parameters to compute TN. Otherwise, set TN to T.T and TN. Use this to scale the plot size.T and, if different, the new transformation TN using SGfigure and tplot.