WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-09-2009, 06:13 PM
GiudiceLab GiudiceLab is offline
Member
 
Join Date: May 2009
Location: Orono, ME
Posts: 49
Vic,
We use position and orientation tracking in our code. We use a function like this:

import viztracker

isense = viz.add('intersense.dls')
vrpn = viz.add('vrpn7.dle')

marker = vrpn.addTracker('PPT0@' + PPT_HOSTNAME,sensor=0)

view = viz.MainView

def checkHead():
ori = isense.get()
pos = marker.getPosition()
view.setEuler(ori[3],ori[4],ori[5])
view.setPosition(pos[0],pos[1],pos[2])
vizact.onupdate(0, checkHead)


But I'm sure there are other ways to accomplish the same thing, like using a timer callback.

We had trouble at first because we hadn't set PPT_HOSTNAME correctly. This should be the name of your PPT computer, which in Win XP you can find under the Properties if you right-click on My Computer.

Hope that it useful to you.
Reply With Quote
 


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
Can you link the position of a tracker to the orientation of an object? michaelrepucci Vizard 1 09-19-2008 11:23 AM
Flock of Birds (Only Position Tracking working? No Orientation?) TheLostBrain Vizard 6 05-10-2008 09:39 AM
tracking with multiple LEDS dan12345 Precision Position Tracker (PPT) 7 04-02-2008 11:44 PM
position tracking with patriot pgagolf Vizard 4 04-19-2007 05:42 AM
tracking using quaternarion data jfreeman Vizard 2 06-01-2005 09:48 AM


All times are GMT -7. The time now is 08:12 PM.


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