![]() |
|
#4
|
|||
|
|||
|
Try the following. Place your intersense on a table and don't move it. Then run the following script and post the entire output it produces. It will connect to the intersense, print some data, then automatically exit after 5 seconds.
Code:
import viz
import vizact
viz.go()
# Connect to tracker
isense = viz.add('intersense.dle')
tracker = isense.addTracker()
tracker.resetHeading()
# Print yaw every 0.1 seconds
def PrintYaw():
print tracker.getEuler()[0]
vizact.ontimer(0.1,PrintYaw)
# Exit after 5 seconds
vizact.ontimer(5,viz.quit)
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linking and Intersense Question | durf | Vizard | 1 | 07-23-2009 11:09 AM |
| intersense with 5DT glove | sjp | Vizard | 2 | 04-06-2009 08:22 AM |
| Intersense reset | Jerry | Vizard | 5 | 08-28-2007 03:32 PM |
| using demo with intersense | G-Chan | Vizard | 1 | 02-06-2006 03:05 PM |
| intersense orientation | jargon | Vizard | 2 | 05-14-2005 05:55 PM |