View Single Post
  #4  
Old 08-31-2016, 09:00 AM
dcnieho dcnieho is offline
Member
 
Join Date: Feb 2011
Posts: 59
Hi Jeff,

It appears that there indeed is an easy stopgap solution. when i do headLink.postEuler([180,0,0],target=viz.LINK_ORI_OP) does the trick.
headLink = vizconnect.getTracker('head_tracker').getLink()

where 'head_tracker' is the OpticalHeading module.

A possibly relevant thought. I also have the following operator on the headLink:
mirrorRotationOperator = headLink.postEuler([0,0,0], target=viz.LINK_FULL_OP)

In my setup, participants walk from one side of the room to the other. I then call mirrorRotationOperator.setEuler([180,0,0]) to rotate the room so that they don't have to walk back to the starting position. This flipping of orientation by mirrorRotationOperator happens much more often than the sudden reversals of head orientation. Also, the head orientation reversal can happen at any time. Thought I'd mention it anyway in case its relevant.

Thanks!
Dee
Reply With Quote