Skip to content
This repository

Added OSC messages /calib_start and /calib_fail #18

Open
wants to merge 1 commit into from

2 participants

Myles Borins Mathieu Virbel
Myles Borins

These additional messages will allow the end user to monitor
calibration of skeletons within their applications rather than within
the terminal

messages /calib_start [user_num] and /calib_fail [user_num]

Myles Borins TheAlphaNerd Added Messages for /calib_start and /calib_fail
Theses additional messages will allow the end user to monitor
calibration of skeletons within their applications rather than within
the terminal
d12c301
Mathieu Virbel

Owners, can you merge this one ? Very simple and it's working like a charm :)

Myles Borins

brrrump

Myles Borins

brump a rump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jul 28, 2011
Myles Borins TheAlphaNerd Added Messages for /calib_start and /calib_fail
Theses additional messages will allow the end user to monitor
calibration of skeletons within their applications rather than within
the terminal
d12c301
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 src/OSCeleton.cpp
4 src/OSCeleton.cpp
@@ -154,6 +154,8 @@ void XN_CALLBACK_TYPE pose_detected(xn::PoseDetectionCapability& capability, con
154 154 // Callback: Started calibration
155 155 void XN_CALLBACK_TYPE calibration_started(xn::SkeletonCapability& capability, XnUserID nId, void* pCookie) {
156 156 printf("Calibration started for user %d\n", nId);
  157 +
  158 + lo_send(addr, "/calib_start","i",(int)nId);
157 159 }
158 160
159 161
@@ -171,6 +173,8 @@ void XN_CALLBACK_TYPE calibration_ended(xn::SkeletonCapability& capability, XnUs
171 173 else {
172 174 printf("Calibration failed for user %d\n", nId);
173 175 userGenerator.GetSkeletonCap().RequestCalibration(nId, TRUE);
  176 +
  177 + lo_send(addr, "/calib_fail","i",(int)nId);
174 178 }
175 179 }
176 180

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.