Syntax
[L,n,t]=Vstray
Output Parameter
L : | | is a list of position vectors. |
n : | | is the number of positions in the vector (redundant) |
t : | | is the time of measurement |
Copyright 2010-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, Vstray
, is designed to return a list of all stray markers detected by a tracking system. It is part of the SG-Library and interacts with a global variable, vicra_global
, which is expected to be initialized by the Vicra driver.
Input Parameters
The function does not take any input parameters directly when called. Instead, it relies on the global variable vicra_global
to be properly initialized and configured.
Output Results
- L: A list of stray markers detected by the system.
- n: The number of stray markers detected.
- tcam: The timestamp indicating when the camera captured the tracker data, measured in camera-time seconds.
- tpc: The timestamp indicating when the PC requested the transformation data from the camera, measured in PC-time seconds.
Algorithm Steps
- The function begins by checking if the global variable
vicra_global
is empty.
- If
vicra_global
is empty, an error is thrown with the message: "Vicra driver not initialized. Please call VTReset first."
- If
vicra_global
is initialized, the function proceeds to call the vstray
method on vicra_global
.
- The
vstray
method returns four outputs: L
, n
, tcam
, and tpc
.
- These outputs are then returned by the function to the caller.
Assumptions
- The global variable
vicra_global
must be properly initialized before calling this function.
- The function assumes that the
vstray
method of vicra_global
is correctly implemented and returns the expected outputs.
- The timestamps
tcam
and tpc
are measured in seconds but by different clocks, and they may have a non-constant offset due to clock drift.
Algorithm explaination created using ChatGPT on 2025-08-19 00:13. (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