WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-21-2013, 08:27 AM
ChrisMa ChrisMa is offline
Member
 
Join Date: Sep 2013
Posts: 13
HeadTracking Rotation does not match

Hello everybody,

I really tried hard. But I don't get the Rotation of my Head right. The positional tracking works as I wanted it. Is swapQuat the right command for it? For example, if i roll the Headtarget the view pitches upwards. I don't understand the positions in the swapQuat. 1,2,3 means Rotation around the x,y,z achses from my tracking Device, right? My Tracking Target has the z-axis in viewing direction, y to the sky and x to the left.

The Position in the matrix coresponds to the axis of my mainview. This is Z in the direction of my view and x to the right and y in the sky, right?

Code:
head.swapPos([-1,3,-2])
head.swapQuat([-1,3,-2,4])
HeadLink=viz.link(head, viz.MainView)
HeadLink.preEuler([0,0,270])

I just dont get it what to do. Can you help?

Thanks a lot for a quick reply!
Reply With Quote
  #2  
Old 11-21-2013, 04:34 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
What tracking system are you using? The following code will do a right-to-left conversion:
Code:
#Negate Z value of position 
headTracker.swapPos([1,2,-3]) 

#Negate X,Y value of quaternion 
headTracker.swapQuat([-1,-2,3,4])
Reply With Quote
  #3  
Old 11-22-2013, 01:36 AM
ChrisMa ChrisMa is offline
Member
 
Join Date: Sep 2013
Posts: 13
Hi Jeff,

Vicon Tracker.
Reply With Quote
  #4  
Old 11-22-2013, 04:25 AM
ChrisMa ChrisMa is offline
Member
 
Join Date: Sep 2013
Posts: 13
I really don't understand it. After two ours of trying I found this as a working solution.
Code:
#Negate Z value of position 
head.swapPos([-1,3,-2]) 

#Negate X,Y value of quaternion 
head.swapQuat([-1,-3,-2,4])
The Z Value of the Head Target is pointing to the sky, the y-axis in viewwing direction and the x Axis to the right side of the user.


I would really appreciate if you could give me some Input on the swapQuat funkction.

Thanks!

Last edited by ChrisMa; 11-22-2013 at 04:27 AM.
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
Custom Joystick Rotation mhead10 Vizard 9 11-26-2012 12:06 PM
set bone rotation - cal3d munteanu24d Vizard 0 03-23-2010 04:25 AM
Unable to perform 360 rotation using vizact.spinto vijaykiran Vizard 2 09-29-2009 08:39 AM
tracking head rotation orientation VAmanda Vizard 3 09-21-2005 04:57 PM
getting absolute rotation tavaksai Vizard 1 08-03-2004 01:40 PM


All times are GMT -7. The time now is 07:27 AM.


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