Intersense reset
According to the help documentation, if I do
ori = viz.add('intersense.dls') ori.command(2) ori.get() should come back 0,0,0 for yaw, pitch, and roll, but this does not happen. Is there something I'm missing or is this a bug? |
The command you are issuing will perform all subsequent resets in a local reference frame. You will have to issue a reset() command afterwards and wait a frame for the intersense data to be updated.
|
That still doesn't work. If I do this:
ori = viz.add('intersense.dls') ori.command(2) ori.reset() print ori.get() the values of yaw, pitch, and roll are not equal to zero. What I want to do is zero all three axes. |
Are you waiting a frame so the intersense data is updated before issuing the reset command?
|
Yes. I have reset() and command() assigned to different
keys. I press the command() key and then, after waiting for what must be longer than one frame, I press the reset() key. |
Sorry, I forgot to mention that these reset modes only work when the intersense is in quaternion mode. After adding the intersense you will need to issue the following command:
Code:
isense.quat() Code:
import viz |
All times are GMT -7. The time now is 08:37 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC