OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
udpSender.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_FILESTREAM_UDP_SENDER_HPP
2 #define OPENPOSE_FILESTREAM_UDP_SENDER_HPP
3 
5 
6 namespace op
7 {
9  {
10  public:
11  UdpSender(const std::string& udpHost, const std::string& udpPort);
12 
13  virtual ~UdpSender();
14 
15  void sendJointAngles(const double* const adamPosePtr, const int adamPoseRows,
16  const double* const adamTranslationPtr,
17  const double* const adamFaceCoeffsExpPtr, const int faceCoeffRows);
18 
19  private:
20  // PIMPL idiom
21  // http://www.cppsamples.com/common-tasks/pimpl.html
22  struct ImplUdpSender;
23  std::shared_ptr<ImplUdpSender> spImpl;
24 
25  // PIMP requires DELETE_COPY & destructor, or extra code
26  // http://oliora.github.io/2015/12/29/pimpl-and-rule-of-zero.html
28  };
29 }
30 
31 #endif // OPENPOSE_FILESTREAM_UDP_SENDER_HPP
void sendJointAngles(const double *const adamPosePtr, const int adamPoseRows, const double *const adamTranslationPtr, const double *const adamFaceCoeffsExpPtr, const int faceCoeffRows)
UdpSender(const std::string &udpHost, const std::string &udpPort)
virtual ~UdpSender()
#define OP_API
Definition: macros.hpp:18
#define DELETE_COPY(className)
Definition: macros.hpp:32