WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-28-2012, 06:43 AM
krimble krimble is offline
Member
 
Join Date: Nov 2006
Location: Nijmegen
Posts: 63
intersense addTracker

Hi all,
I'm having some troubles with a small piece of code. Basically I would like to connect to the Intersense 900 and link my mainview to the tracker and apply a postTranslation to it.

(I'm busy writing an exp. using a usb steering wheel and would like to translate the view using the pedals without losing tracking).

I'm used to working with apparently an old intersense method and in another lab (where the experiment is working fine) with the VRPN.dle method:

Code:
PORT_INTERSENSE = 0
isense = viz.add('intersense.dls')
viz.tracker()
and with:
Code:
	vrpn = viz.add('vrpn7.dle')
	tracker = []
	for trackerNr in range(50):
		tracker.append(vrpn.addTracker('DTrack@192.168.1.100', trackerNr))
		tracker[trackerNr].swapPos([-2, 3, 1])
		tracker[trackerNr].swapQuat([2, -3, -1, 4])
	#	tracker[Nr].setBufferSize(2)

	mv = viz.link(tracker[1], viz.MainView)

I saw the message that I should use:
Code:
tracker = isense.addTracker(port=1)
instead of:
Code:
viz.tracker()
When I'm using the addTracker function I'm getting the following message:

intersense.dls Intersense Driver v4.0.4
**Connected to Intersense device on port 5001
Type: IS Precision Series
Model: IS-900 Series

Both Station 1 and 2 have the following values:
ON ON 1 2 3 0 0

Traceback (most recent call last):
File "<string>", line 11, in ?
File "intersenseTester.py", line 12, in ?
tracker = intersense.addTracker(x)
AttributeError: 'VizIntersense' object has no attribute 'addTracker'

InterSense is connected on port 1



With the isense.DLE plugin:

intersense.dle Intersense Extension
InterSense is connected on port 1
** Load Time: 1.64 seconds
** ERROR: Failed to connect to Intersense tracker on port 1
** ERROR: Failed to create extension sensor with intersense.dle


am I using an old plugin? How can I make it work with Isense like I did with the VRPN Method.

Many thanks in advance,

Jeroen Derks
Reply With Quote
 

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
Failed to connect to intersense Karma Precision Position Tracker (PPT) 1 07-01-2011 01:48 PM
Intersense connection blessonisaac Vizard 2 12-06-2010 05:13 PM
Properly aligning the intersense with the PPT Systems Z Axis shivanangel Precision Position Tracker (PPT) 0 11-10-2009 11:35 AM
world is tilting - intersense or code problem? billjarrold Vizard 2 11-06-2009 08:03 AM
intersense with 5DT glove sjp Vizard 2 04-06-2009 07:22 AM


All times are GMT -7. The time now is 02:08 PM.


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