WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 10-27-2009, 11:25 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The Intersense driver does not preserve the reset settings across multiple runs, so you need to call the resetHeading command every time your script runs.

You can optionally hard code the offset value for the Intersense so you don't have to call the resetHeading command each time. Since the heading is based on the internal compass, the offset will need to be computed for each physical location the script is executed from.

To use this technique, connect to the Intersense without resetting it and place it in the desired zeroed heading position. Make sure the Intersense is stationary and there is no interference. Now grab the yaw value from the stationary Intersense tracker and use the following code to apply the heading offset:
Code:
# Connect to Intersense tracker
isense = viz.add('intersense.dle')
tracker = isense.addTracker()

ZERO_YAW = ... #Save the yaw value here

# Link tracker to main viewpoint
trackerLink = viz.link(tracker,viz.MainView)

# Apply yaw offset to link to reach desired zero heading
trackerLink.postEuler([-ZERO_YAW,0,0],target=viz.LINK_ORI_OP)
Reply With Quote
 

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
Linking and Intersense Question durf Vizard 1 07-23-2009 10:09 AM
intersense with 5DT glove sjp Vizard 2 04-06-2009 07:22 AM
Intersense reset Jerry Vizard 5 08-28-2007 02:32 PM
using demo with intersense G-Chan Vizard 1 02-06-2006 02:05 PM
intersense orientation jargon Vizard 2 05-14-2005 04:55 PM


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


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