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
  #4  
Old 10-23-2009, 04:02 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
Reply With Quote
 


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 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


All times are GMT -7. The time now is 10:16 AM.


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