11 #include "../SkillStatusUpdate.h"
16 const std::vector<std::string>& parameterIds) :
19 for (
const auto&
id : parameterIds)
21 tokenHasArrivedMap[
id] =
false;
23 ARMARX_WARNING <<
"Fluxio Merger is waiting for the following tokens to arrive: "
39 std::this_thread::sleep_for(std::chrono::milliseconds(250));
42 bool allTokensArrived =
true;
43 for (
const auto& [
id, hasArrived] : tokenHasArrivedMap)
47 allTokensArrived =
false;
76 std::unique_lock l(tokenHasArrivedMapMutex);
77 const auto it = tokenHasArrivedMap.find(parameterId);
79 if (it == tokenHasArrivedMap.end())
85 ARMARX_WARNING <<
"Fluxio Merger received token for parameterId: " << parameterId;
86 tokenHasArrivedMap[parameterId] =
true;
92 std::optional<std::vector<skills::FluxioSkillStatusUpdate>>