Vreset

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - NDI Camera
Introduced first in SolidGeometry 1.0, Creation date: 2010-09-01, Last change: 2025-09-14

resets the NDI camera and starts the communication.

Description

This function initializes the NDI Vicra camera and resets all tracker geometries. By default it gives a short explanation on the use.

See Also: Vreset , Vstray , Vstat , VTset , VTget , VTgetp , VTlearn , VTget2 , VTget2p

Example Illustration

 missing image of Vreset(silent)

Syntax

S=Vreset([silent])

Input Parameter

silent: 1=no text information

Output Parameter

S: is 0 means no connection, 1 means connected

References

- Kerle, H., Pittschellis, R. Corves, B. (2007): Einführung in die Getriebelehre, B.G. Teubner Verlag, 3. Auflage



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 algorithm is designed to reset and initialize a Vicra camera, which is a type of navigation camera used in various applications. The process involves several steps, each of which is crucial for ensuring the camera is ready for operation.

Input Parameters

There are no direct input parameters for this function. It operates on a global instance of the Vicra class.

Algorithm Steps

1. Close All Serial Devices

The function begins by calling vicra.close_all_serial_devices(). This step ensures that any previously opened serial connections to the camera are closed, preventing conflicts or errors when establishing a new connection.

2. Create Vicra Instance

A global instance of the Vicra class is created using global vicra_global and vicra_global=vicra(). This instance will be used to interact with the camera throughout the function.

3. Open Connection

The vicra_global.open() function is called to search for connected navigation cameras, open the appropriate serial interface, and reset the camera. This step is crucial for establishing communication with the camera.

4. Set Baud Rate

The default baud rate of 9600 is often too slow for many applications. The function vicra_global.set_baudrate(115200) is used to set a higher baud rate of 115200, which is more suitable for faster data transmission. The supported baud rates can be retrieved using vicra.get_supported_baudrates().

5. Initialize Camera

The vicra_global.init() function is called to upload six standard tracker geometries and start the tracking mode. This step is essential for preparing the camera to track objects accurately. A message 'wait 6 seconds...' is printed to indicate the initialization process duration.

Conclusion

This algorithm effectively resets and initializes a Vicra camera by closing existing connections, establishing a new connection, setting an appropriate baud rate, and initializing the camera for tracking. Each step is crucial for ensuring the camera operates correctly and efficiently.

Algorithm explaination created using ChatGPT on 2025-08-19 00:14. (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