Open 60-hz opened 8 years ago
Here is a test showing the bug in the last outlet of pix_openni 0.12 in OSX (simple patch included)
When printing data, every new cycle shows an error in joints coordinate:
In pd 0.46-2 / 0.46-7:
print: joint head 1 0.454203 0.401621 0.550383 0 print: joint neck 1 0.441082 0.492172 0.55811 0 print: joint torso 1 0.447468 0.592685 0.579538 0 print: joint waist 1 0.447468 0.592685 0.579538 0 print: joint l_collar 1 0.447468 0.592685 0.579538 0 print: joint l_shoulder 1 0.483485 0.482689 0.607638 0 print: joint l_elbow 1 0.466437 0.449893 0.449543 0 print: joint l_wrist 1 0.466437 0.449893 0.449543 0 print: joint l_hand 1 0.506239 0.503396 0.643814 0 print: joint l_fingertip 1 0.506239 0.503396 0.643814 0 print: joint r_collar 1 0.506239 0.503396 0.643814 0 print: joint r_shoulder 1 0.398678 0.501655 0.508582 0 print: joint r_elbow 1 0.424026 0.464135 0.443352 0 print: joint r_wrist 1 0.424026 0.464135 0.443352 0 print: joint r_hand 1 0.467323 0.389323 0.526307 0 print: joint r_fingertip 1 0.467323 0.389323 0.526307 0 print: joint l_hip 1 0.477073 0.688006 0.628085 0 print: joint l_knee 1 0.457265 0.833332 0.805053 0 print: joint l_ankle 1 0.457265 0.833332 0.805053 0 print: joint l_foot 1 0.4582 1.01343 0.768214 0 print: joint r_hip 1 0.430637 0.69839 0.573847 0 print: joint r_knee 1 0.415586 0.886361 0.574918 0 print: joint r_ankle 1 0.415586 0.886361 0.574918 0 print: joint r_foot 1 0.415771 1.06428 0.630722 0 print: jointconsistency check failed: atom_string t: joint 1 0.5 0.5 8.26766e-44 0
in pd-extended 0.43.4:
print: joint head 1 0.4526 0.43911 0.493601 0 print: joint neck 1 0.440261 0.479653 0.488435 0 print: joint torso 1 0.442789 0.529569 0.492854 0 print: joint waist 1 0.442789 0.529569 0.492854 0 print: joint l_collar 1 0.442789 0.529569 0.492854 0 print: joint l_shoulder 1 0.47209 0.475545 0.520011 0 print: joint l_elbow 1 0.48447 0.452652 0.546676 0 print: joint l_wrist 1 0.48447 0.452652 0.546676 0 print: joint l_hand 1 0.481518 0.45012 0.484773 0 print: joint l_fingertip 1 0.481518 0.45012 0.484773 0 print: joint r_collar 1 0.481518 0.45012 0.484773 0 print: joint r_shoulder 1 0.408431 0.483762 0.456859 0 print: joint r_elbow 1 0.407887 0.496708 0.447558 0 print: joint r_wrist 1 0.407887 0.496708 0.447558 0 print: joint r_hand 1 0.399494 0.535402 0.440378 0 print: joint r_fingertip 1 0.399494 0.535402 0.440378 0 print: joint l_hip 1 0.457898 0.57786 0.509752 0 print: joint l_knee 1 0.462894 0.677678 0.556374 0 print: joint l_ankle 1 0.462894 0.677678 0.556374 0 print: joint l_foot 1 0.445417 0.748697 0.657661 0 print: joint r_hip 1 0.432738 0.581108 0.484792 0 print: joint r_knee 1 (Tcl) NOM DE COMMANDE INVALIDE : invalid command name "window::post" while executing "window::post {1}" ("uplevel" body line 52) invoked from within "uplevel #0 $cmds_from_pd"print: joint t: joint 1 0.5 0.5 8.26766e-44 0 print: joint head 1 0.4526 0.43911 0.493601 0 print: joint neck 1 0.440261 0.479653 0.488435 0
Same problem using "osc_style_output 1" with pd0.46-2:
print: /skeleton/joint/head 1 0.439074 0.327176 0.408452 0 print: /skeleton/joint/neck 1 0.452399 0.440753 0.442168 0 print: /skeleton/joint/torso 1 0.456069 0.509937 0.469668 0 print: /skeleton/joint/waist 1 0.456069 0.509937 0.469668 0 print: /skeleton/joint/l_collar 1 0.456069 0.509937 0.469668 0 print: /skeleton/joint/l_shoulder 1 0.504914 0.437222 0.434125 0 print: /skeleton/joint/l_elbow 1 0.524127 0.416886 0.390888 0 print: /skeleton/joint/l_wrist 1 0.524127 0.416886 0.390888 0 print: /skeleton/joint/l_hand 1 0.523228 0.489699 0.397245 0 print: /skeleton/joint/l_fingertip 1 0.523228 0.489699 0.397245 0 print: /skeleton/joint/r_collar 1 0.523228 0.489699 0.397245 0 print: /skeleton/joint/r_shoulder 1 0.399885 0.444283 0.45021 0 print: /skeleton/joint/r_elbow 1 0.36651 0.511298 0.471217 0 print: /skeleton/joint/r_wrist 1 0.36651 0.511298 0.471217 0 print: /skeleton/joint/r_hand 1 0.378576 0.626081 0.440062 0 print: /skeleton/joint/r_fingertip 1 0.378576 0.626081 0.440062 0 print: /skeleton/joint/l_hip 1 0.511009 0.575675 0.489316 0 print: /skeleton/joint/l_knee 1 0.51619 0.710082 0.558327 0 print: /skeleton/joint/l_ankle 1 0.51619 0.710082 0.558327 0 print: /skeleton/joint/l_foot 1 0.508876 0.833611 0.645129 0 print: /skeleton/joint/r_hip 1 0.408467 0.582569 0.50502 0 print: /skeleton/joint/r_knee 1 0.388449 0.721927 0.490283 0 print: /skeleton/joint/neck(Tcl) INVALID COMMAND NAME: invalid command name "::pdw::pdwindow::post" while executing "::pdw::pdwindow::post { }" ("uplevel" body line 288) invoked from within "uplevel #0 $docmds"print: /skeleton/joint/r_foot 1 0.383222 0.850773 0.558253 0
and then:
print: /skeleton/joint/head 1 0.437258 0.449752 0.461161 0 print: /skeleton/joint/neck 1 0.450202 0.446767 0.467323 0 print: /skeleton/joint/torso 1 0.452146 0.516756 0.506526 0 print: /skeleton/joint/waist 1 0.452146 0.516756 0.506526 0 print: /skeleton/joint/l_collar 1 0.452146 0.516756 0.506526 0 print: /skeleton/joint/l_shoulder 1 0.497063 0.44785 0.453681 0 print: /skeleton/joint/l_elbow 1 0.505889 0.449488 0.376997 0 print: /skeleton/joint/l_wrist 1 0.505889 0.449488 0.376997 0 print: /skeleton/joint/l_hand 1 0.509542 0.47358 0.412908 0 print: /skeleton/joint/l_fingertip 1 0.509542 0.47358 0.412908 0 print: /skeleton/joint/r_collar 1 0.509542 0.47358 0.412908 0 print: /skeleton/joint/r_shoulder 1 0.403341 0.445684 0.480965 0 print: /skeleton/joint/r_elbow 1 0.381602 0.502013 0.473952 0 print: /skeleton/joint/r_wrist 1 0.381602 0.502013 0.473952 0 print: /skeleton/joint/r_hand 1 0.385311 0.600459 0.463094 0 print: /skeleton/joint/r_fingertip 1 0.385311 0.600459 0.463094 0 print: /skeleton/joint/l_hip 1 0.497838 0.587757 0.532992 0 print: /skeleton/joint/l_knee 1 0.494438 0.726116 0.565219 0 print: /skeleton/joint/l_ankle 1 0.494438 0.726116 0.565219 0 print: /skeleton/joint/l_foot 1 0.493599 0.856652 0.615054 0 print: /skeleton/joint/r_hip 1 0.41034 0.585735 0.558464 0 print: /skeleton/joint/r_knee 1 0.395735 0.718433 0.497765 0 print: /skeleton/joint/r_ankle 1 0.395735 0.718433 0.497765 0 print: /skeleton/joint/r_foot 1 0.386148 0.847268 0.553545 0 print: /skeleton/joint/head 1 0.433522 0.394296 0.513839 0 print: /skeleton/joint/neck 1 0.447632 0.455132 0.46665 0 print: /skeleton/joint/torso 1 0.445455 0.537292 0.490809 0 print: /skeleton/joint/waist 1 0.445455 0.537292 0.490809 0 print: /skeleton/joint/l_collar 1 0.445455 0.537292 0.490809 0 print: /skeleton/joint/l_shoulder 1 0.488576 0.451373 0.510169 0(Tcl) INVALID COMMAND NAME: invalid command name "�n/joint/l_elbow}" while executing "�n/joint/l_elbow}" ("uplevel" body line 78) invoked from within "uplevel #0 $docmds"print: /skeleton/joint/r_elbow 1 0.390045 0.502921 0.41226 0