19 std::lock_guard<std::mutex> lock(mutex);
21 std::swap(datum, last_rgb);
27 std::lock_guard<std::mutex> lock(mutex);
28 if (local_arrival_time <= 0.0) {
37 return std::make_tuple(
true, last_rgb, stamp);
44 std::lock_guard<std::mutex> lock(mutex);
46 std::swap(datum, last_depth);
52 std::lock_guard<std::mutex> lock(mutex);
53 if (local_arrival_time <= 0.0) {
63 return std::make_tuple(
true, last_depth, stamp);
70 auto result = port_rgb->getImage();
72 if (!std::get<0>(result)) {
76 data = std::get<1>(result);
78 *timeStamp = std::get<2>(result);
86 auto result = port_depth->getImage();
88 if (!std::get<0>(result)) {
92 data = std::get<1>(result);
94 *timeStamp = std::get<2>(result);
102 auto resultRgb = port_rgb->getImage();
103 auto resultDepth = port_depth->getImage();
105 bool retRgb = std::get<0>(resultRgb);
106 bool retDepth = std::get<0>(resultDepth);
108 if (!retRgb || !retDepth) {
112 rgbImage = std::get<1>(resultRgb);
115 port_rgb->getEnvelope(*rgbStamp);
119 port_depth->getEnvelope(*depthStamp);
127 port_rgb = _port_rgb;
128 port_depth = _port_depth;
130 port_depth->useCallback();