WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-29-2012, 04:15 AM
Harchet Harchet is offline
Member
 
Join Date: Feb 2012
Posts: 5
Intersense tracker

Hello, I want to create an intersense tracker with vizard. This is my code:
Quote:
isense = viz.add('intersense.dle')
glasses = isense.addTracker(port=1,station=1)
wand = isense.addTracker(port=1,station=2)
while(1):
print("Glasses position")
print(glasses.getPosition())
print("Glasses Rotation")
print(glasses.getEuler())
print("Wand position")
print(wand.getPosition())
print("Wand analog")
print(wand.getJoystickPosition())
print '\n' * 14
time.sleep(0.01)
The thing is that all the information is the same everytime, even if I move the wand and the glasses. What am I doing wrong?

PS: I want to track position, euler and wand buttons and joystick

Thanks
Reply With Quote
  #2  
Old 03-01-2012, 02:51 AM
Harchet Harchet is offline
Member
 
Join Date: Feb 2012
Posts: 5
I just solved using this code:
Quote:
viztracker.go()
isense = viz.add('intersense.dle')
wandTracker = isense.addTracker(port=1,station=2)

def printTrackerData():
print wandTracker.getJoystickPosition()

vizact.ontimer(0.01,printTrackerData)
Now is working fine
Reply With Quote
Reply

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
Intersense wand and Head tracker blessonisaac Vizard 0 01-10-2011 03:39 PM
Properly aligning the intersense with the PPT Systems Z Axis shivanangel Precision Position Tracker (PPT) 0 11-10-2009 11:35 AM
world is tilting - intersense or code problem? billjarrold Vizard 2 11-06-2009 08:03 AM
The problem of tracker using via VRPN _kj_ Vizard 2 08-13-2009 12:03 AM
intersense with 5DT glove sjp Vizard 2 04-06-2009 07:22 AM


All times are GMT -7. The time now is 08:26 AM.


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