WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-26-2010, 07:25 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Can you post the code you are testing with? The IS-900 supports position data so if you link the tracker to the view you should see the position change as well.
Reply With Quote
  #2  
Old 07-26-2010, 11:32 PM
znchb znchb is offline
Member
 
Join Date: Sep 2008
Posts: 21
thank you for your reply, I copy the file to here.

import viz
viz.go()
viz.add('tut_ground.wrl')
viz.clearcolor(viz.GRAY)

view = viz.MainView
PORT_INTERSENSE = 1
sensor = viz.add('intersense.dls')
viz.tracker()
link = viz.link( sensor, view )#this link the Sensor's Orientation with View

#vrpn = viz.add('vrpn7.dle')
#tracker1 = vrpn.addTracker('Tracker0@localhost')
#tracker2 = vrpn.addTracker('Tracker0@localhost',1)

def onTimer(num):# try to control the MainView's position, by getPosition #from sensor, however, it doesn't work
pos = sensor.getPosition()
euler = sensor.getEuler()
print pos
print euler
view.setPosition(pos)
view.setEuler(euler)

viz.callback(viz.TIMER_EVENT,mytimer)
viz.starttimer(0,0.01,viz.FOREVER)
Reply With Quote
  #3  
Old 07-27-2010, 12:06 AM
znchb znchb is offline
Member
 
Join Date: Sep 2008
Posts: 21
Hi, Jeff,

If you have time, please give me some idea. thanks
Reply With Quote
Reply

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


All times are GMT -7. The time now is 01:36 AM.


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