![]() |
#2
|
|||
|
|||
You should be able to use a single preEuler operator to reset the pitch to zero. The following sample code demonstrates how to reset the pitch during runtime. It will take the current raw euler values from the tracker and apply the inverse pitch to a preEuler operator.
Code:
import viz import vizact viz.go() viz.add('maze.osgb') tracker = viz.add('testtrack_ori.dls') view_link = viz.link(tracker,viz.MainView) pitch_reset = view_link.preEuler([0,0,0],target=viz.LINK_ORI_OP) def ResetPitch(): yaw,pitch,roll = tracker.getEuler() pitch_reset.setEuler([0,-pitch,0]) vizact.onkeydown('r',ResetPitch) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Coordinate system flips when pitch crosses 90deg? | bernie | Vizard | 6 | 04-15-2010 05:31 PM |
reset intersense not working | billjarrold | Vizard | 9 | 03-31-2010 09:53 PM |
The problem of tracker using via VRPN | _kj_ | Vizard | 2 | 08-13-2009 12:03 AM |
question about yaw, pitch, roll | TunTun | Vizard | 2 | 05-23-2007 12:46 PM |
Pitch Question | nickyee | Vizard | 1 | 07-14-2004 10:07 AM |