Helper class to identify an LED based on its pattern of brightness over time. The base class defines the interface. The derived classes encode the pattern-detection algorithm for specific devices. More...
#include </home/jenkins/root/workspace/OSVR-Core-Docs/plugins/unifiedvideoinertialtracker/LedIdentifier.h>
Public Member Functions | |
virtual | ~LedIdentifier () |
Virtual destructor;. | |
virtual ZeroBasedBeaconId | getId (ZeroBasedBeaconId currentId, BrightnessList &brightnesses, bool &lastBright, bool blobsKeepId) const =0 |
Determine the identity of the LED whose brightness pattern is passed in. Truncates the passed-in list to the length needed to look for a pattern, so it does not grow too long and waste space and time, and perhaps produce spurious Ids. More... | |
virtual | ~LedIdentifier () |
Virtual destructor;. | |
virtual int | getId (int currentId, BrightnessList &brightnesses, bool &lastBright, bool blobsKeepId) const =0 |
Determine the identity of the LED whose brightness pattern is passed in. Truncates the passed-in list to the length needed to look for a pattern, so it does not grow too long and waste space and time, and perhaps produce spurious Ids. More... | |
Helper class to identify an LED based on its pattern of brightness over time. The base class defines the interface. The derived classes encode the pattern-detection algorithm for specific devices.
NOTE: This class may modify the passed-in list, truncating it so that old data points are removed once there are enough measurements to make an estimate.
NOTE: This class may modify the passed-in list, truncating it so that old data points are removed once there are enough measurements to make an estimate.
Definition at line 53 of file LedIdentifier.h.
|
pure virtual |
Determine the identity of the LED whose brightness pattern is passed in. Truncates the passed-in list to the length needed to look for a pattern, so it does not grow too long and waste space and time, and perhaps produce spurious Ids.
[out] | lastBright | set to True if we determine that the LED is currently "bright" |
Implemented in osvr::vbtracker::OsvrHdkLedIdentifier.
|
pure virtual |
Determine the identity of the LED whose brightness pattern is passed in. Truncates the passed-in list to the length needed to look for a pattern, so it does not grow too long and waste space and time, and perhaps produce spurious Ids.
[out] | lastBright | set to True if we determine that the LED is currently "bright" |
Implemented in osvr::vbtracker::OsvrHdkLedIdentifier.