| 
				
				Position/Orientation using HMD
			 
 
			
			Thanks, that corrected my issue. However this only works for a stationary camera, but my project involves the use of a HMD mounted camerea and this causes the positions and angles to change as the camera moves. How should I go about solving this problem. I have posted the most recent coding below:
 import viz
 import vizact
 import vizshape
 viz.go()
 
 ar = viz.add('artoolkit.dle')
 
 camera = ar.addWebCamera()
 board = camera.addMatrixMarker(0,width=1000)
 camera.setGlobalMarker(board)
 
 
 
 box = camera.addMatrixMarker(1,width=1000)
 
 arm = camera.addMatrixMarker(2,width=1000)
 
 def showData():
 for number in range(5):
 box_pos = box.getPosition(viz.ABS_GLOBAL)
 for pos in box_pos:
 if round(box_pos [0]) == -3.0 and round(box_pos[1]) == 5.0 and round(box_pos[2]) == 5.0:
 print box_pos, 'great job'
 
 else:
 print box_pos
 
 
 
 vizact.ontimer(2,showData)
 |