#1
|
|||
|
|||
get tracker position and euler
hello,
hope somebody knows a more simple solution to get the coordinates of the tracker and the orientation from the intersense. my actual solution is to load the vizsetupcfg.py and use getPosition and getEuler form headpos and headori; to get that working I needed to modyfy the vizsetupcfg.py and set the first five lines of the createCustomComposite as a global. actually it is working but i'm quiet shure there must be a more elegant solution to this task. tips and hints are welcome. thanks, chris |
#2
|
|||
|
|||
Does the following work for you?
Code:
import viz import viztracker import vizact viztracker.go() tracker = viztracker.get('input0') def printTrackerData(): print tracker.getEuler() print tracker.getPosition() vizact.ontimer(0,printTrackerData) |
#3
|
|||
|
|||
Thanks Jeff!
That's exactly what I needed. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
display the position and euler coords of the main view | Josh | Vizard | 1 | 03-22-2010 11:48 AM |
euler problems in Vizard 3.0 | v-clizzin | Vizard | 3 | 08-16-2007 07:10 PM |