WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-16-2016, 05:19 AM
rajnishv rajnishv is offline
Member
 
Join Date: Jan 2016
Location: Kalina,Sanatcruz(East),Mumbai,Maharashtra,India
Posts: 94
Jeff,
One more query ,i want to re-apply the same yaw ,pitch to the head tracker but i have to restrict the roll value of the head tracker so that roll doesn't work using the code,but i m not able to get it:

#----------Start----------------
def restrictRollFromTracker():
headTracker=vizconnect.getTracker('headtracker')
eulrHeadTracker=headTracker.getEuler()
yaww=eulrHeadTracker[0]
pitchh=eulrHeadTracker[1]
headTracker.getNode3d().setEuler([yaww,pitchh,0],viz.ABS_PARENT )

vizact.ontimer(0,restrictRollFromTracker)


But i m not able to retrict the roll value of the tracker again.Pls help.
#-----End---------------



Waiting for ur reply.
Thanx & Regards!!!

Mr.Rajnish Vishwakarma
Software Developer
at
Xenium Digital Pvt. Ltd,Mumbai
(Customer of world viz)
Reply With Quote
  #2  
Old 07-16-2016, 05:49 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
In this case you don't need to get the yaw, pitch, and roll values. Just get a handle to the tracker link and use the link.setEuler operator:

Code:
trackerLink = vizconnect.getTracker('headtracker').getLink()
#Keep the incoming yaw and pitch, but zero the roll
trackerLink.setEuler([None,None,0])
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
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


All times are GMT -7. The time now is 11:56 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC