1 #ifndef OPENPOSE_FILESTREAM_W_UDP_SENDER_HPP
2 #define OPENPOSE_FILESTREAM_W_UDP_SENDER_HPP
10 template<
typename TDatums>
14 explicit WUdpSender(
const std::shared_ptr<UdpSender>& udpSender);
21 const std::shared_ptr<UdpSender> spUdpSender;
35 template<
typename TDatums>
37 spUdpSender{udpSender}
41 template<
typename TDatums>
46 template<
typename TDatums>
58 #ifdef USE_3D_ADAM_MODEL
59 const auto& tDatum = (*tDatums)[0];
60 if (!tDatum.poseKeypoints3D.empty())
62 const auto& adamPose = tDatum.adamPose;
63 const auto& adamTranslation = tDatum.adamTranslation;
64 const auto adamFaceCoeffsExp = tDatum.adamFaceCoeffsExp;
74 spUdpSender->sendJointAngles(adamPose.data(), adamPose.rows(),
75 adamTranslation.data(),
76 adamFaceCoeffsExp.data(), adamFaceCoeffsExp.rows());
86 catch (
const std::exception& e)
89 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
96 #endif // OPENPOSE_FILESTREAM_W_UDP_SENDER_HPP
Definition: workerConsumer.hpp:10
void workConsumer(const TDatums &tDatums)
Definition: wUdpSender.hpp:47
void initializationOnThread()
Definition: wUdpSender.hpp:42
static const std::string timerInit(const int line, const std::string &function, const std::string &file)
OP_API void error(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
Definition: wUdpSender.hpp:11
WUdpSender(const std::shared_ptr< UdpSender > &udpSender)
Definition: wUdpSender.hpp:36
void dLog(const T &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")
Definition: errorAndLog.hpp:53
bool checkNoNullNorEmpty(const TPointerContainer &tPointerContainer)
Definition: pointerContainer.hpp:7
static void printAveragedTimeMsOnIterationX(const std::string &key, const int line, const std::string &function, const std::string &file, const unsigned long long x=DEFAULT_X)
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)
static void timerEnd(const std::string &key)