KMT

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 2.1, Creation date: 2015-02-09, Last change: 2025-09-14

returns a HT-Matrix from a kinematic model

Description

A kinematik model currently consists of a list of solids an a list of strings that can be used to identify the solid in the list.
An error occurs if either the solid name is not existing in the model or the frame

Example Illustration

 missing image of KMT(KM,N);

Syntax

T=KMT(KM,N);

Input Parameter

KM: Kinematic Model {Solid ' Name'}
N: Name "Solid.Frame"

Output Parameter

T: HT Matrix




Copyright 2015-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, KMT, is designed to return a homogeneous transformation (HT) matrix from a kinematic model. The function takes two input parameters and provides one output result.

Input Parameters

Output Results

Algorithm Steps

  1. Initialize the output matrix T as an empty array and the index i as 0.
  2. Find the position of the dot in the string N to separate the solid name from the frame name.
  3. Extract the solid name Bd and the frame name Fm from N.
  4. Initialize flags ins and frm as false to track if the solid and frame are found.
  5. Loop through the list of solid names in KM.Sname to find a match for Bd:
  6. If the solid is found (ins is true):
  7. If the solid is not found, print an error message indicating the solid does not exist.
Algorithm explaination created using ChatGPT on 2025-08-19 00:16. (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