Skip to content
floe edited this page Nov 16, 2014 · 11 revisions

Examples

Touch

Assume that we have a touch screen (e.g. DiamondTouch) which can identify different users and fingers.

# start a new frame
/tuio2/frm 1148 [time] [dimensions] "RCTV:0@0x80000001"

# basic information: right thumb touch (5) by user 2,
# no shear angle, no pressure data
/tuio2/ptr 537 0x00020005 0 0.163 0.396 1.24 0.0 0.01 0.0

# finish frame
/tuio2/alv 537

Touch + hand

...

Token

Increasing levels of detail are sent with each message that shares a session ID.

# basic information: tagged token, temporary (session) ID 123,
# no specific user ID (=0), token type 1, token ID 82, x/y/angle
/tuio2/tok 123 1 82 0.635 0.758 0.32

# add geometric information (object dimensions)
/tuio2/bnd 123 0.32 0.1 0.1 0.01

# add token symbol data: Microsoft Surface identity tag, ID 82
/tuio2/sym 123 1 82 ms/id 0x50E1F82DC0F9D78940DB27993C9E09A3

# add non-standard data: object color
/tuio2/sym 123 1 82 color/hsv 0x7380FF

[...]

# same token picked up and put down again at different location
# temporary session ID changes, other IDs remain constant
/tuio2/tok 129 1 82 0.958 0.267 0.39
...
Clone this wiki locally