WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 06-03-2009, 09:04 AM
Vic Vic is offline
Join Date: Jun 2009
Posts: 10
Position and Orientation tracking problem

When I ran my Vizard program and tried to move around with the headset, it wasn't picking up the movement (both position and orientation). I went back and checked the PPT program to see whether the cameras were picking up the movement. They were able to pick up the movement. I'm suspecting it has something to do with my code. I was wondering what could be the cause of this and how it could be fixed.

Reply With Quote
Old 06-09-2009, 05:13 PM
GiudiceLab GiudiceLab is offline
Join Date: May 2009
Location: Orono, ME
Posts: 49
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()
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

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 10:23 AM
Flock of Birds (Only Position Tracking working? No Orientation?) TheLostBrain Vizard 6 05-10-2008 08:39 AM
tracking with multiple LEDS dan12345 Precision Position Tracker (PPT) 7 04-02-2008 10:44 PM
position tracking with patriot pgagolf Vizard 4 04-19-2007 04:42 AM
tracking using quaternarion data jfreeman Vizard 2 06-01-2005 08:48 AM

All times are GMT -7. The time now is 03:06 PM.

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