WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-12-2012, 12:51 PM
DillonB DillonB is offline
Member
 
Join Date: Jul 2012
Posts: 7
Actually, I was looking through some more documentation and I had just tried that. I updated my code so that now it looks like this (difference begins at line 22):
Code:
#################################################################
#	WorldViz Copyright 2002										#
#  This script demonstrates how perform grab the raw data 		#
#  from the head tracker plugin.								#
#																#
#################################################################

import viz
import vizact

viz.setMultiSample(4)
viz.fov(60)
viz.go()

import vizinfo
vizinfo.add('This script demonstrates how to perform manual head tracking.\nIt will retrieve data from the tracker and only rotate the yaw.\nBy default this script will connect to an intersense.\nPress the \'r\' key to reset the tracker')

#Add environment
viz.addChild('gallery.osgb')

InertialLabs = viz.add('InertialLabs.dle')
sensors =InertialLabs.addSensorBus(workset=0,port=5)

# Get handle to first sensor
sensor1 = sensors[0]

def updateView():
    #pos = sensor.getPosition()
    euler = sensor.getEuler()

    #viz.MainView.setPosition([pos[0], pos[1]+1.82, pos[2]])
    viz.MainView.setEuler(euler)
    print euler

vizact.ontimer(0,updateView)
However, I get this error:
Quote:
Traceback (most recent call last):
File "<string>", line 11, in <module>
File "C:\Users\dbak\Documents\vizard-programs\Vizard1.py", line 21, in <module>
sensors = InertialLabs.addSensorBus(workset=0,port=5)
AttributeError: '_InertialLabsExtension' object has no attribute 'addSensorBus'
In summary, I am in fact using a sensor bus, but the addSensorBus method is not working for me.
Reply With Quote
  #2  
Old 07-12-2012, 02:34 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Are you using the Inertial Labs plugin that comes with the latest version of Vizard? My guess is you are not.
Reply With Quote
  #3  
Old 07-13-2012, 06:03 AM
DillonB DillonB is offline
Member
 
Join Date: Jul 2012
Posts: 7
I found the file in the plug-ins folder. It says it was last modified on 8/19/2011. I'm assumming this is the day it was finished. What version of Vizard does this correspond with? If there is a newer version of the file, where would I be able to download it? Currently I am using Vizard 4.02.0315.

Last edited by DillonB; 07-13-2012 at 06:07 AM.
Reply With Quote
  #4  
Old 07-13-2012, 09:11 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You don't have the latest version. Go to Help -> Check for Updates
Reply With Quote
  #5  
Old 07-13-2012, 12:44 PM
DillonB DillonB is offline
Member
 
Join Date: Jul 2012
Posts: 7
Thank you for all the help; it is working now. My bad, I should have made sure all my software was up-to-date.
Reply With Quote
Reply

Tags
headtracking

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Vizard Sensor Plugin farshizzo Plug-in development 25 08-01-2019 12:24 AM
Unusual tracker sensor setup with Vizard Zhi Vizard 2 06-12-2012 09:52 AM
sensor or not sensor? nige777 Vizard 0 03-29-2011 04:03 AM
wiimote and sensor bar masaki Vizard 1 03-06-2008 03:07 PM
Multiple Copies of same sensor plugin RedSpikeyThing Plug-in development 2 02-12-2008 02:10 PM


All times are GMT -7. The time now is 03:52 AM.


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