ImFusion SDK 4.3
LaserLocker Class Reference

#include <RGBD/Include/ImFusion/RGBD/LaserLocker.h>

Provides management and acquisition of laser locks for RGB-D sensors. More...

Detailed Description

Provides management and acquisition of laser locks for RGB-D sensors.

This class is intended to coordinate laser locking across multiple sensors to avoid interference and ensure reliable acquisition.

Typical usage:

// The following should be used inside doWork() of a worker thread of RGBDStream to guarentee laser lock management
LaserLocker locker(sensor); // Waits and acquires laser lock if necessary
// locker manages the laser lock state for the given sensor
// When locker goes out of scope, the lock is released
LaserLocker(RGBDStream *sensor)
Constructs a laser locker for the given RGBD sensor.
Note
  • The class is not thread-safe.
  • Lock state is managed internally and not exposed via public API.
See also
RGBDStream

Public Member Functions

 LaserLocker (RGBDStream *sensor)
 Constructs a laser locker for the given RGBD sensor.
 

Constructor & Destructor Documentation

◆ LaserLocker()

LaserLocker ( RGBDStream * sensor)

Constructs a laser locker for the given RGBD sensor.

Attempts to acquire a laser lock if the LaserManager is enabled and multiple sensors are present.

Parameters
sensorPointer to the RGBDStream sensor to be managed.

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close