OptiTrack and Python

Post Reply
am128256
Posts: 7
Joined: Mon Jul 07, 2008 8:44 am

OptiTrack and Python

Post by am128256 »

Hello,

I read in the manual that there is Optitrack support for Python but I cannot find any documentation, example code, or any form of help on getting started with programming with OptiTrack in Python.

Are there any resources that could help me or does anybody here know the import command for importing the OptiTrack SDK into Python?

I plan to use OptiTrack with a TrackIR camera to track the TrackIR head gear in order to allow a user to look around using their head in the simulation I am working on.

If nothing else, I can code in C++ and later wrap it in Python in order to make it work for my purposes, but it would take much less time and effort to just be able to code right in Python. Plus, there is supposed to be support for Python I just cannot find any starting point.

Thank you for your time.
Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: OptiTrack and Python

Post by Birch »

The ability to use Python is mentioned because Python on Windows supports COM, which is how the OptiTrack SDK API is exposed. Unfortunately, we don't have any direct experience implementing it.
am128256
Posts: 7
Joined: Mon Jul 07, 2008 8:44 am

Re: OptiTrack and Python

Post by am128256 »

Thank you for your reply.

What do you recommend as a starting point for writing a program that will use Optitrack to get TrackIR information for game input, then?
Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: OptiTrack and Python

Post by Birch »

There are a number of C, C++ and VB samples with source code posted to the OptiTrack download section that you might want to check out.
Post Reply