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

actx = libsurvive.SimpleContext(sys.argv)

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

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