aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/example.py
blob: 5454fbc261a54b3f645d960d0fb12f8a36acd270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import libsurvive
import sys

actx = libsurvive.AsyncContext(sys.argv)

for obj in actx.Objects():
    print(obj.Name())

while actx.Running():
    updated = actx.NextUpdated()
    if updated:
        print(updated.Name(), updated.Pose())