Point Cloud Library (PCL)
1.3.1
|
/brief This template class synchronizes two data streams of different types. More...
#include <pcl/common/synchronizer.h>
Public Member Functions | |
Synchronizer () | |
int | addCallback (const CallbackFunction &callback) |
void | removeCallback (int i) |
void | add0 (const T1 &t, unsigned long time) |
void | add1 (const T2 &t, unsigned long time) |
/brief This template class synchronizes two data streams of different types.
The data can be added using add0 and add1 methods which expects also a timestamp of type unsigned long. If two matching data objects are found, registered callback functions are invoked with the objects and the time stamps. The only assumption of the timestamp is, that they are in the same unit, linear and strictly monotonic increasing. If filtering is desired, e.g. thresholding of time differences, the user can do that in the callback method. This class is thread safe. /ingroup common
pcl::Synchronizer::Synchronizer | ( | ) | [inline] |
Definition at line 65 of file synchronizer.h.
void pcl::Synchronizer::add0 | ( | const T1 & | t, |
unsigned long | time | ||
) | [inline] |
Definition at line 83 of file synchronizer.h.
void pcl::Synchronizer::add1 | ( | const T2 & | t, |
unsigned long | time | ||
) | [inline] |
Definition at line 92 of file synchronizer.h.
int pcl::Synchronizer::addCallback | ( | const CallbackFunction & | callback | ) | [inline] |
Definition at line 68 of file synchronizer.h.
void pcl::Synchronizer::removeCallback | ( | int | i | ) | [inline] |
Definition at line 76 of file synchronizer.h.