Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does i receive /r_foot and /r_knee only? #21

Open
liuhaolive opened this issue Sep 10, 2011 · 3 comments
Open

Why does i receive /r_foot and /r_knee only? #21

liuhaolive opened this issue Sep 10, 2011 · 3 comments

Comments

@liuhaolive
Copy link

Why does i receive /r_foot and /r_knee only?

something error with my osceleton ?

No other joints messages

@YggdrasiI
Copy link

I can confirm this error. Only the last message will send, if lo_send_bundle(...) is called. If I comment out the last call of oscFunc(...) I recieve the above one…
Solution: Not found yet.

Part of src/OSCeleton.cpp:
if (jointPos(aUsers[i], XN_SKEL_LEFT_FOOT) == 0) {
oscFunc(&bundle, "l_foot");
}
if (jointPos(aUsers[i], XN_SKEL_RIGHT_HIP) == 0) {
oscFunc(&bundle, "r_hip");
}
if (jointPos(aUsers[i], XN_SKEL_RIGHT_KNEE) == 0) {
oscFunc(&bundle, "r_knee");
}
if (jointPos(aUsers[i], XN_SKEL_RIGHT_ANKLE) == 0) {
oscFunc(&bundle, "r_ankle");
}
if (jointPos(aUsers[i], XN_SKEL_RIGHT_FOOT) == 0) {
oscFunc(&bundle, "r_foot");
}

  lo_send_bundle(addr, bundle);

@gwbond
Copy link

gwbond commented Jan 30, 2012

i figured out what is causing this problem and fixed it - it's a memory management problem - i'll contact the author and hopefully the fix will be included in a subsequent version

[updated]

in the interim, here's a link to the modified code: https://gist.github.com/1706007

@YggdrasiI
Copy link

Hi, i've applied your patch in my fork and send a pull request to Sensebloom, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants