WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 10:32 AM.


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