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
4
#include <
openpose/core/common.hpp
>
5
6
namespace
op
7
{
8
class
OP_API
UdpSender
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
27
DELETE_COPY
(
UdpSender
);
28
};
29
}
30
31
#endif
// OPENPOSE_FILESTREAM_UDP_SENDER_HPP
op::UdpSender
Definition:
udpSender.hpp:9
op::UdpSender::sendJointAngles
void sendJointAngles(const double *const adamPosePtr, const int adamPoseRows, const double *const adamTranslationPtr, const double *const adamFaceCoeffsExpPtr, const int faceCoeffRows)
op::UdpSender::UdpSender
UdpSender(const std::string &udpHost, const std::string &udpPort)
op::UdpSender::~UdpSender
virtual ~UdpSender()
common.hpp
OP_API
#define OP_API
Definition:
macros.hpp:18
DELETE_COPY
#define DELETE_COPY(className)
Definition:
macros.hpp:32
op
Definition:
cameraParameterReader.hpp:7
include
openpose
filestream
udpSender.hpp
Generated by
1.9.1