WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-20-2011, 12:58 AM
chris_user chris_user is offline
Member
 
Join Date: Feb 2011
Posts: 20
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
Reply With Quote
  #2  
Old 06-24-2011, 11:29 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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)
Reply With Quote
  #3  
Old 07-01-2011, 02:31 AM
chris_user chris_user is offline
Member
 
Join Date: Feb 2011
Posts: 20
Thanks Jeff!

That's exactly what I needed.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 05:07 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC