TUIO MESSAGE Format

Aug 25, 2010 at 8:37 AM

Hi,

First of all, thanks for creating this, it is very nifty. 

I was playing around with code to try and trigger the driver using TUIO signals.  So imagine a program running in a loop, sending TUIO signals (at localhost, 3333), with the driver set to TUIO (instead of multi-mice) mode.  Now, by sending the TUIO signal as per the specifications I am able to get a single touch to appear.  See the sample TUIO data (was written as a log using Reactivision TUIO Simulator) created for single touch:

/tuio/2Dcur : (
    <OSCVal s "alive">,
    <OSCVal i 0>
)
/tuio/2Dcur : (
    <OSCVal s "set">,
    <OSCVal i 0>,
    <OSCVal f 0.187500>,
    <OSCVal f 0.302083>,
    <OSCVal f 0.000000>,
    <OSCVal f 0.000000>,
    <OSCVal f 0.000000>
)
/tuio/2Dcur : (
    <OSCVal s "fseq">,
    <OSCVal i 2>
)

The message above works like a charm.  However, I am having a hard time figuring out what message to send when I am sending multitouch data.  Here's what I'm doing right now, it'll be a great help if you can suggest whether this is right or wrong, and what I can do.

/tuio/2Dcur : (
    <OSCVal s "alive">,

    <OSCVal i 1>,
    <OSCVal i 0>
)


/tuio/2Dcur : (
    <OSCVal s "set">,
    <OSCVal i 1>,
    <OSCVal f 0.527520>,
    <OSCVal f 0.300741>,
    <OSCVal f 0.000000>,
    <OSCVal f 0.000000>,
    <OSCVal f 0.000000>
)

/tuio/2Dcur : (
    <OSCVal s "set">,
    <OSCVal i 0>,
    <OSCVal f 0.187500>,
    <OSCVal f 0.302083>,
    <OSCVal f 0.000000>,
    <OSCVal f 0.000000>,
    <OSCVal f 0.000000>
)
/tuio/2Dcur : (
    <OSCVal s "fseq">,
    <OSCVal i 3>
)

As you can see, I am sending two Set messages between the alive and fseq boundaries.  This doesn't seem to be working with the multitouch driver.  Any help or idea or correction would be much appreciated.

Thanks

Amartya

Coordinator
Aug 25, 2010 at 5:57 PM

You should ask the creator of TUIO protocoll at http://tuio.org/ I have just used the client implementation he developed.

Aug 25, 2010 at 10:47 PM

Thanks for the quick reply.  I have posted the question in the TUIO forum.

Jul 19, 2011 at 10:53 AM

Hello Amartya

I am trying to write a TUIO server (in C# preferable) compatible with the MTV as well. I am also having hard time figuring out how to make it happen.

If you managed to go arround this I would be grateful if you could share the knowledge.

Thanks in advance!

Jul 19, 2011 at 10:53 AM

diavatis

Jul 20, 2011 at 6:16 AM
Edited Jul 20, 2011 at 6:17 AM
diavatis wrote:

Hello Amartya

I am trying to write a TUIO server (in C# preferable) compatible with the MTV as well. I am also having hard time figuring out how to make it happen.

If you managed to go arround this I would be grateful if you could share the knowledge.

Thanks in advance!

Hello Diavatis,

I did indeed get this to work, I'll send you the code sample tomorrow (saw this a little late at night), it works fairly well.  I'd be glad to help out.

Cheers,

Amartya

Jul 20, 2011 at 8:17 AM

Thank you very much! I will be waiting for your reply. 

All the best,

diavatis

Dec 13, 2012 at 12:19 AM

Hi Amartya

Can you explain in detail how you used the TUIO simulator to send touches to MTV? I can see the verbose log output

in the console window but nothing happens on screen. 

 

Also, you mention that you succeeded in getting multi touch working. How did you do that?