summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_UDP
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2011-03-10 20:40:13 +0000
committerWim Vriend <facetracknoir@gmail.com>2011-03-10 20:40:13 +0000
commit09b4c95b8036b9466ca89acbe0b1f3d810499863 (patch)
treee6b99fe5420181331e70c14277a6af93f084f1c5 /FTNoIR_Tracker_UDP
parent7dc20f380c80b1b0597e619e66d23921f0309aa0 (diff)
faceAPI inside DLL works; no video-display yet...
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@53 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_UDP')
-rw-r--r--FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h3
-rw-r--r--FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp12
2 files changed, 12 insertions, 3 deletions
diff --git a/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h b/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h
index 9a0cad1f..ab9c0ed5 100644
--- a/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h
+++ b/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h
@@ -16,7 +16,8 @@ public:
void Release();
void Initialize();
void StartTracker();
- void GiveHeadPoseData(THeadPoseData *data);
+ void StopTracker();
+ bool GiveHeadPoseData(THeadPoseData *data);
void loadSettings();
bool setParameterValue(const int index, const float newvalue);
diff --git a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
index 1a64261e..afeae10d 100644
--- a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
+++ b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
@@ -127,7 +127,15 @@ void FTNoIR_Tracker_UDP::StartTracker()
return;
}
-void FTNoIR_Tracker_UDP::GiveHeadPoseData(THeadPoseData *data)
+void FTNoIR_Tracker_UDP::StopTracker()
+{
+ //
+ // OK, the thread is not stopped, doing this. That might be dangerous anyway...
+ //
+ return;
+}
+
+bool FTNoIR_Tracker_UDP::GiveHeadPoseData(THeadPoseData *data)
{
data->x = newHeadPose.x;
data->y = newHeadPose.y;
@@ -135,7 +143,7 @@ void FTNoIR_Tracker_UDP::GiveHeadPoseData(THeadPoseData *data)
data->yaw = newHeadPose.yaw;
data->pitch = newHeadPose.pitch;
data->roll = newHeadPose.roll;
- return;
+ return true;
}
bool FTNoIR_Tracker_UDP::setParameterValue(const int index, const float newvalue)