Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b538fc080a
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (20 sloc) 0.648 kb
#!/usr/bin/python
import sys, serial, time
import tuio
import arena
arena.read_config()
tracking = tuio.Tracking()
try:
while True:
while tracking.update():
pass
for obj in tracking.objects():
camera_pos = arena.CameraPosition()
camera_pos.set_tuio(obj)
arena_pos = arena.ArenaPosition()
arena_pos.set_camera(camera_pos)
print "%2d: %s -> %s" % (camera_pos.id, str(camera_pos), str(arena_pos))
time.sleep(1.0)
print
except KeyboardInterrupt:
tracking.stop()
Jump to Line
Something went wrong with that request. Please try again.