![]() |
|
#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 Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Coordinate system flips when pitch crosses 90deg? | bernie | Vizard | 6 | 04-15-2010 06:31 PM |
| reset intersense not working | billjarrold | Vizard | 9 | 03-31-2010 10:53 PM |
| The problem of tracker using via VRPN | _kj_ | Vizard | 2 | 08-13-2009 01:03 AM |
| question about yaw, pitch, roll | TunTun | Vizard | 2 | 05-23-2007 01:46 PM |
| Pitch Question | nickyee | Vizard | 1 | 07-14-2004 11:07 AM |