[T,n]=VTget2p(a,b)
a : | the reference tracker number | |
b : | the tracker of interest number |
T : | resulting relative HT-Matrix A_T_B | |
n : | some distance norm in millimeter |
This function, VTget2p
, is designed to return a precise relation matrix between two trackers, identified as nr1
and nr2
. The function is part of a system that requires both trackers to remain still, with a movement of less than 0.5 mm, for at least 0.8 seconds to ensure accuracy.
The function begins by checking if the global variable vicra_global
is initialized. If it is empty, the function throws an error, indicating that the Vicra driver is not initialized and suggests calling VTReset
first.
If vicra_global
is initialized, the function proceeds to call the method vtget2p
on vicra_global
, passing nr1
and nr2
as arguments. This method returns the transformation matrix T
, and the timestamps tcam
and tpc
.
The function relies on the assumption that the Vicra system is properly set up and that the trackers are stationary for the required duration to ensure the accuracy of the transformation matrix.
Algorithm explaination created using ChatGPT on 2025-08-18 23:02. (Please note: No guarantee for the correctness of this explanation)