WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-16-2011, 01:33 PM
Kaminski Kaminski is offline
Member
 
Join Date: Nov 2010
Posts: 36
IS-900 Wand linking Problems

Hi All,
I am having trouble trying to link my IS-900 wand to a 3d node. When I print the orientation data from the wand it seems normal, but when I have a shape linked to the tracker the pitch, yaw, and roll seem to be reversed and not centered properly. Here is some example code:

Code:
cylinder = vizshape.addCylinder()
cylinder.color( viz.RED)

isense = viz.add('intersense.dle')
tr1 = isense.addTracker( port=4, station=1 )
tr2 = isense.addTracker( port=4, station=2 )

main = viz.link(tr1,viz.MainView)
cyl = viz.link(tr2,cylinder)

def printPos():
    print "cylPos ",cyl.getPosition()
    print "cylEul ",cyl.getEuler()
vizact.onkeydown( 'p' , printPos)
I have tried putting 'cylinder.center(tr2.getPosition()) before I link them. I have tried 'cyl.swapEuler' a few different ways but nothing seems right. I don't understand how the output euler can seem correct but the node could be way off. Any ideas?
Reply With Quote
  #2  
Old 05-16-2011, 03:56 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Does it look fine when you link the viewpoint to the tracker?
Reply With Quote
  #3  
Old 05-17-2011, 08:05 AM
Kaminski Kaminski is offline
Member
 
Join Date: Nov 2010
Posts: 36
Yes, linking the wand to the viewpoint results in normal viewpoint control.

Last edited by Kaminski; 05-17-2011 at 08:10 AM.
Reply With Quote
  #4  
Old 05-17-2011, 09:39 AM
Kaminski Kaminski is offline
Member
 
Join Date: Nov 2010
Posts: 36
I fixed it in the process of simplifying my code. I wish I could say how -- thanks anyway.
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
Problems loading WRL file DrunkenBrit Vizard 2 01-29-2009 12:58 AM
avatar animation problems jrodman Vizard 1 01-18-2006 09:12 AM
Export/import problems and Vizard 3.0 release searsky Vizard 0 01-03-2006 01:34 AM
Problems Importing VRML Files oscar Vizard 4 10-13-2004 05:42 PM
Problems with lighting in 2.0 murm Vizard 6 04-21-2004 09:59 AM


All times are GMT -7. The time now is 09:02 AM.


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