Point Cloud Library (PCL)
1.14.1-dev
|
/brief This template class synchronizes two data streams of different types. More...
#include <pcl/common/synchronizer.h>
Public Member Functions | |
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
Definition at line 55 of file synchronizer.h.
|
inline |
Definition at line 87 of file synchronizer.h.
|
inline |
Definition at line 96 of file synchronizer.h.
|
inline |
Definition at line 72 of file synchronizer.h.
|
inline |
Definition at line 80 of file synchronizer.h.