SR300stop

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - RealSense Camera
Introduced first in SolidGeometry 4.3, Creation date: 2018-09-23, Last change: 2025-08-18

initializes the Intel RealSense 300 Scanner and creates a global struct IntelRealSense300

Description

Stops the pipline of global struct named: IntelRealSense300


See Also: SR300install , SR300start , SR300depthimage , SR300videoimage , SR300allimages , SR300getVL

Example Illustration

 missing image of SR300stop

Syntax

SR300stop

Examples


SR300start;
SR300depthimage;
SR300stop;
SR300stop;




Copyright 2018-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, SR300stop, is designed to stop the pipeline of the Intel RealSense 300 Scanner, which is managed through a global struct named IntelRealSense300.

Input Parameters

The function does not take any input parameters. It operates on a global variable.

Global Variable

Algorithm Steps

  1. Check if the global variable IntelRealSense300 is not empty. This ensures that the scanner has been initialized and is currently active.
  2. If IntelRealSense300 is not empty, attempt to stop the pipeline using IntelRealSense300.pipeline.stop().
  3. If an error occurs during the stopping process, catch the exception and store the error message in err.
  4. Display a warning message indicating that the pipeline could not be closed, and print the reason for the failure using the error message.
  5. Clear the global variable IntelRealSense300 to remove any references to the scanner, effectively resetting the global state.

Exception Handling

The function includes a try-catch block to handle any exceptions that may occur when attempting to stop the pipeline. If an exception is caught, a warning is issued, and the error message is printed to the console.

Usage Example

The function is typically used in a sequence of operations involving the Intel RealSense 300 Scanner:

SR300start;
SR300depthimage;
SR300stop;
SR300stop;

This sequence starts the scanner, captures a depth image, and then stops the scanner. The function can be called multiple times to ensure the pipeline is stopped.

Algorithm explaination created using ChatGPT on 2025-08-18 23:06. (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