![]() |
|
#1
|
|||
|
|||
Do I just need to run your code (and thus reset my intersense) just once. From that point on, any time the intersense is started up, 0 degrees will correspond to the positon it was in when it was last reset?
....OR.... Do I need to run your resettig code every single time I run my program? |
#2
|
|||
|
|||
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) |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
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 |