1 #ifndef VideoSource_Kinect2Net_HH
2 #define VideoSource_Kinect2Net_HH
4 #include <VideoSource/VideoSource_Base.hh>
5 #include <Image/Camera.hh>
7 #include <NetworkComm/CScommClient.hh>
25 virtual int OpenDevice();
29 virtual int OpenDevice(std::string host,
int port=8090);
32 virtual int CloseDevice();
35 virtual int PreGrab();
38 virtual int PostGrab();
54 virtual int GetNumDevices();
64 static void* runner(
void *args);
68 static const int buffersize_ = 4;
73 imbuffer() : curProd(0), curCons(0) {
74 sem_init(&sProd,
true,buffersize_);
75 sem_init(&sCons,
true,0);
76 for (
int i=0;i<buffersize_;i++) buffer[i].Init(512,424,1);
84 imbuffer depthbuffer_;
88 pthread_t grabThread_;
99 #endif // VideoSource_Kinect2Net_HH
Defines a common interface to different devices.
class for sending/receiving data between clients and servers
The image template class for specific storage types.
Checks for VideoSource capabilities.
This is the base class for images in BIAS.
Provides remote access to a Microsoft Kinect2 camera.