PL=PLofT(T0)
T0 : | List of matrices in 2D |
PL : | Point list |
PLofT(TofPLpath(PLsample(9)))
This function, PLofT
, is designed to extract a point list from the translation part of a list of homogeneous transformation (HT) matrices. It is part of the SolidGeometry library and was introduced in version 4.5.
The function begins by checking the size of the second dimension of the input matrix list T0
:
size(T0,2) == 3
, it indicates that the matrices are 2D homogeneous transformation matrices. The function extracts the translation components from the third column of each matrix, specifically the first two rows, and stores them in the point list PL
.PL
.The function uses the squeeze
function to remove singleton dimensions from the extracted data, and the transpose operator ('
) to ensure the point list is in the correct orientation.
If the function is called without output arguments (nargout == 0
), it performs additional operations:
SGfigure
to create a new figure window.tplot
to plot the transformation matrices T0
.PLplot
to plot the point list PL
with a magenta line of width 2.This function is useful for visualizing the path described by a series of transformation matrices, particularly in robotics and kinematics applications.
Algorithm explaination created using ChatGPT on 2025-08-18 22:40. (Please note: No guarantee for the correctness of this explanation)