| Kaminski | 
			05-16-2011 02:33 PM | 
		 
		 
		 
		
			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?  
	 |