-
Notifications
You must be signed in to change notification settings - Fork 22
Examples
floe edited this page Nov 16, 2014
·
11 revisions
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,
# x/y/angle, no shear angle, area, no pressure data
/tuio2/ptr 537 0x00020005 0 0.163 0.396 1.24 0.0 0.001 0.0
# finish frame
/tuio2/alv 537
# basic information: right thumb touch (5) by user 2,
# x/y/angle, no shear angle, area, no pressure data
/tuio2/ptr 537 0x00020005 0 0.163 0.396 1.24 0.0 0.001 0.0
# basic information: right hand open (0x16) by user 2,
# x/y/angle, no shear angle, area, no pressure data
/tuio2/ptr 538 0x00020016 0 0.169 0.387 1.39 0.0 0.01 0.0
# physical association between the two objects
# (without input/output port information)
/tuio2/lia 538 true 537 0
Increasing levels of detail are sent with each message that shares a session ID.
# basic blob data/geometry
/tuio2/bnd 995 0.194 0.778 0.64 0.24 0.19 0.05
# add outline geometry
/tuio2/ocg 995 x0 y0 x1 y1 ... xn yn
# add detailed area geometry
/tuio2/arg 995 x0 y0 w0 x1 y1 w1 ... xn yn wn
# add non-standard data: object color
/tuio2/sym 995 0 0 color/hsv 0x7380FF
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.635 0.758 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
[...]
# 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
...