Hello,

not sure if this should go to this list or to the "dev" list...

Running Ubuntu studio 10.04 64 bit, I have a problem with the reacTIVision
client in Pure Data (extended, 0.42.5-2). Trying to put the client on the
canvas, gives the message:

"/home/menno/pd/TuioClient.pd_linux: /home/menno/pd/TuioClient.pd_linux:
wrong ELF class: ELFCLASS32"

Seems like it was built solely for 32 bit systems? I really do not know how
to resolve this, or how to build a working pd-client from the source.

Attached is my attempt to build an alternative client, using mrpeach
[udpreceive] and [unpackOSC]. This works, however the problem is with
'addObject' and 'removeObject' messages that the regular client gives. In
what I built now, this only works if there is only 1 fudicial in sight.
Updates keep on going so work fine with multiple fudicials in sight of the
camera. In example 2, I have tried resolving this by creating an [inlet] to
determine which fudicial number this client is for. However, using multiple
clients is of no use, because the [updreceive] object can only be used once,
multiple copied will not output data.

Any ideas either on how to resolve the initial issue, or how to improve this
alternative idea for a reacTIVision client?

Ciao, Menno.
#N canvas 611 236 950 719 10;
#X declare -lib mrpeach;
#X obj -94 -307 import mrpeach;
#X obj 17 -282 unpackOSC;
#X obj 17 -307 udpreceive 3333;
#X obj 17 -208 list split 1;
#X obj 84 -146 unpack s;
#X obj 84 -174 t l b;
#X obj 147 -146 str set;
#X obj 84 -119 str compare;
#X obj 51 -91 spigot;
#X obj 51 -45 list split 1;
#X obj 301 131 >;
#X obj 301 67 t f f b;
#X floatatom 301 101 5 0 0 0 - - -;
#X obj 301 158 sel 1;
#X obj 301 185 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 17 -41 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj -81 361 print leave;
#X obj -10 94 timer;
#X obj 50 -17 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 17 62 spigot;
#X obj 23 8 - 1;
#X obj -10 36 spigot;
#X floatatom -10 123 5 0 0 0 - - -;
#X obj 34 88 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj -80 125 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj -81 310 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 36 310 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj -81 237 line;
#X floatatom -71 262 5 0 0 0 - - -;
#X floatatom 21 182 5 0 0 0 - - -;
#X obj -42 208 pack;
#X msg -42 182 10;
#X obj -81 285 threshold 10 10 9 10;
#X obj -80 152 t b b;
#X obj -10 182 int;
#X msg -81 208 1;
#X obj -81 334 zl reg;
#X obj 301 218 zl reg;
#X obj 301 262 print enter;
#X obj 85 -3 print update;
#X obj 301 -3 unpack f;
#X obj -2 361 outlet;
#X obj 377 262 outlet;
#X obj 73 22 outlet;
#X obj -10 151 * 2;
#X text -43 228 count to 10 in 2 times the time in between the previous
bangs (bang means list update received);
#X text 330 122 check if id number has changed: this means elvis has
entered the building;
#X text -35 327 bang if 10 is hit and time exceeds 2 times the time
in between two previously received messages;
#X text 43 362 elvis has left the building;
#X text 423 263 elvis has entered the building;
#X text 70 41 output fudicial updates;
#X text 116 -306 reacTIVision incoming signal;
#X text 80 -287 unpack udp data to OSC data;
#X text 98 -211 split the "/tuio/2Dobj" symbol;
#X text 80 -274 message form for fiducial is list of 2 symbols with
10 floats: "/tuio/2Dobj set #id #fudicial x y rotation float5 float6
float7 float8 float9 float10";
#X text 355 -142 Alternative Tuioclient;
#X text 362 -116 2010 \, menno;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X connect 3 1 5 0;
#X connect 3 1 8 0;
#X connect 4 0 7 0;
#X connect 5 0 4 0;
#X connect 5 1 6 0;
#X connect 6 0 7 1;
#X connect 7 0 8 1;
#X connect 8 0 9 0;
#X connect 8 0 15 0;
#X connect 9 1 36 1;
#X connect 9 1 37 1;
#X connect 9 1 39 0;
#X connect 9 1 40 0;
#X connect 9 1 43 0;
#X connect 10 0 13 0;
#X connect 11 0 12 0;
#X connect 11 1 10 0;
#X connect 11 2 12 0;
#X connect 12 0 10 1;
#X connect 13 0 14 0;
#X connect 14 0 37 0;
#X connect 15 0 18 0;
#X connect 15 0 21 0;
#X connect 15 0 19 0;
#X connect 17 0 22 0;
#X connect 18 0 19 1;
#X connect 18 0 20 0;
#X connect 19 0 17 1;
#X connect 19 0 23 0;
#X connect 19 0 24 0;
#X connect 20 0 21 1;
#X connect 21 0 17 0;
#X connect 21 0 24 0;
#X connect 22 0 44 0;
#X connect 24 0 33 0;
#X connect 25 0 36 0;
#X connect 27 0 28 0;
#X connect 27 0 32 0;
#X connect 30 0 27 0;
#X connect 31 0 30 0;
#X connect 32 0 25 0;
#X connect 32 1 26 0;
#X connect 33 0 31 0;
#X connect 33 1 35 0;
#X connect 34 0 30 1;
#X connect 35 0 27 0;
#X connect 36 0 16 0;
#X connect 36 0 41 0;
#X connect 37 0 38 0;
#X connect 37 0 42 0;
#X connect 40 0 11 0;
#X connect 44 0 29 0;
#X connect 44 0 34 0;
#N canvas 534 234 1333 802 10;
#X declare -lib mrpeach;
#X obj 311 -287 import mrpeach;
#X obj 417 -262 unpackOSC;
#X obj 417 -287 udpreceive 3333;
#X obj 417 -198 list split 1;
#X obj 484 -136 unpack s;
#X obj 484 -164 t l b;
#X obj 547 -136 str set;
#X obj 484 -109 str compare;
#X obj 451 -81 spigot;
#X obj 451 -35 list split 1;
#X obj 577 227 >;
#X obj 577 163 t f f b;
#X floatatom 577 197 5 0 0 0 - - -;
#X obj 577 254 sel 1;
#X obj 577 281 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 260 8 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 233 143 timer;
#X obj 293 32 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 260 111 spigot;
#X obj 266 57 - 1;
#X obj 233 85 spigot;
#X obj 162 310 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 279 310 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 162 257 line;
#X obj 201 228 pack;
#X msg 201 202 10;
#X obj 162 285 threshold 10 10 9 10;
#X obj 163 172 t b b;
#X obj 233 202 int;
#X msg 162 228 1;
#X obj 162 334 zl reg;
#X obj 577 314 zl reg;
#X obj 162 363 outlet;
#X obj 577 363 outlet;
#X obj 485 167 outlet;
#X text 115 381 elvis has entered the building;
#X obj 233 171 * 2;
#X obj 533 -6 inlet;
#X obj 577 111 spigot;
#X obj 461 20 unpack f f;
#X obj 577 20 unpack f;
#X obj 518 79 ==;
#X obj 485 111 spigot;
#X text 515 -287 reacTIVision incoming signal;
#X text 479 -268 unpack udp data to OSC data;
#X text 497 -200 split the "/tuio/2Dobj" symbol;
#X text 559 -109 see if the message concerns a "set";
#X text 531 -36 split the "set" deliminator;
#X text 608 222 check if id number has changed: this means elvis has
entered the building;
#X text 479 -255 message form for fiducial is list of 2 symbols with
10 floats: "/tuio/2Dobj set #id #fudicial x y rotation float5 float6
float7 float8 float9 float10";
#X text 408 188 output fudicial updates;
#X text 558 384 output fudicial entry list;
#X text 571 -8 inlet to determine the fudicial this client is for;
#X text 209 327 bang if 10 is hit and time exceeds 2 times the time
in between two previously received messages;
#X text 270 142 time measurement in between bangs;
#X text 195 248 count to 10 in 2 times the time in between the previous
bangs (bang means list update received);
#X text 104 -221 Alternative Tuioclient;
#X text 111 -195 2010 \, menno;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X connect 3 1 5 0;
#X connect 3 1 8 0;
#X connect 4 0 7 0;
#X connect 5 0 4 0;
#X connect 5 1 6 0;
#X connect 6 0 7 1;
#X connect 7 0 8 1;
#X connect 8 0 9 0;
#X connect 9 1 31 1;
#X connect 9 1 39 0;
#X connect 9 1 40 0;
#X connect 9 1 42 0;
#X connect 9 1 30 1;
#X connect 10 0 13 0;
#X connect 11 0 12 0;
#X connect 11 1 10 0;
#X connect 11 2 12 0;
#X connect 12 0 10 1;
#X connect 13 0 14 0;
#X connect 14 0 31 0;
#X connect 15 0 17 0;
#X connect 15 0 20 0;
#X connect 15 0 18 0;
#X connect 16 0 36 0;
#X connect 17 0 18 1;
#X connect 17 0 19 0;
#X connect 18 0 16 1;
#X connect 18 0 27 0;
#X connect 19 0 20 1;
#X connect 20 0 16 0;
#X connect 20 0 27 0;
#X connect 21 0 30 0;
#X connect 23 0 26 0;
#X connect 24 0 23 0;
#X connect 25 0 24 0;
#X connect 26 0 21 0;
#X connect 26 1 22 0;
#X connect 27 0 25 0;
#X connect 27 1 29 0;
#X connect 28 0 24 1;
#X connect 29 0 23 0;
#X connect 30 0 32 0;
#X connect 31 0 33 0;
#X connect 36 0 28 0;
#X connect 37 0 41 1;
#X connect 38 0 11 0;
#X connect 39 1 41 0;
#X connect 40 0 38 0;
#X connect 41 0 38 1;
#X connect 41 0 42 1;
#X connect 42 0 34 0;
#X connect 42 0 15 0;
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to