From d6d310fdd13c11382f37faca6a0c20b361ae9c40 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Wed, 4 Apr 2018 10:42:51 -0600 Subject: Added python binding --- bindings/python/example.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bindings/python/example.py (limited to 'bindings/python/example.py') diff --git a/bindings/python/example.py b/bindings/python/example.py new file mode 100644 index 0000000..5454fbc --- /dev/null +++ b/bindings/python/example.py @@ -0,0 +1,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()) + -- cgit v1.2.3