29#include <IceUtil/UUID.h>
50 HandOverGroup::HandOverGroupStatechartContext::onInitStatechartContext();
53 ->registerObject(listener,
"OpenPose3dListenerImpl" + IceUtil::generateUUID())
55 getIceManager()->subscribeTopic(
object,
"OpenPoseEstimation3D");
61 HandOverGroup::HandOverGroupStatechartContext::onConnectStatechartContext();
81 std::unique_lock lock(mutex);
82 std::vector<armarx::Keypoint3DMap> vec;
83 for (
const auto& [name, entity] :
data)
85 if (entity.keypointMap.empty())
90 vec.push_back(entity.keypointMap);
93 this->timestamp = IceUtil::Time::microSeconds(timestamp);
96 std::pair<IceUtil::Time, std::vector<armarx::Keypoint3DMap>>
99 std::unique_lock lock(mutex);
100 return std::make_pair(timestamp, latestData);
SpamFilterDataPtr deactivateSpam(SpamFilterDataPtr const &spamFilter, float deactivationDurationSec, const std::string &identifier, bool deactivate)
#define ARMARX_STREAM_PRINTER
use this macro to write output code that is executed when printed and thus not executed if the debug ...
const IceInternal::Handle< OpenPose3DListenerImpl > & getPoseData() const
HandOverGroupStatechartContextExtension()
void onInitStatechartContext() override
void onConnectStatechartContext() override
void report3DKeypoints(const armarx::HumanPose3DMap &, Ice::Long, const Ice::Current &) override
std::pair< IceUtil::Time, std::vector< armarx::Keypoint3DMap > > getLatestData()
#define ARMARX_INFO
The normal logging level.
#define ARMARX_IMPORTANT
The logging level for always important information, but expected behaviour (in contrast to ARMARX_WAR...
This file offers overloads of toIce() and fromIce() functions for STL container types.