WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   intersense addTracker (https://forum.worldviz.com/showthread.php?t=4181)

krimble 03-28-2012 06:43 AM

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

krimble 03-28-2012 01:29 PM

Mainly I can't use the addTracker function.

Code:

#Add a tracker.
isense = viz.add('intersense.dle')
tracker = isense.addTracker()

#Link the tracker to the view.
viz.link( tracker, view )

Error Message:
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

Do I need to use a more uptodate plugin? What is wrong?

Thank you!!

Jeff 03-30-2012 02:20 AM

Please test with the following short scripts and let us know the output with each.
1.
Code:

import viz
viz.go()

isense = viz.add('intersense.dle')
tracker = isense.addTracker()

2.
Code:

import viz
viz.go()

PORT_INTERSENSE = 0
isense = viz.add('intersense.dls')


krimble 03-30-2012 04:51 AM

What do you think it can be?

Thanks for helping me!



Output 1:


Quote:

************************************************** ****************************
** Loading trackerTest.py
************************************************** ****************************
intersense.dle Intersense Extension
** ERROR: Failed to retrieve Intersense station info for station 1
** ERROR: Failed to retrieve Intersense station info for station 2
** ERROR: Failed to retrieve Intersense station info for station 3
** ERROR: Failed to retrieve Intersense station info for station 4
** ERROR: Failed to retrieve Intersense station info for station 5
** ERROR: Failed to retrieve Intersense station info for station 6
** ERROR: Failed to retrieve Intersense station info for station 7
** ERROR: Failed to retrieve Intersense station info for station 8
** Load Time: 3.20 seconds
** ERROR: Failed to auto-detect Intersense, try specifying port number
** ERROR: Failed to create extension sensor with intersense.dle
InterSense Library ver. 4.2110 32-bit
Copyright 1998-2010 InterSense Inc.
http://www.intersense.com
Tel: 781-541-6330

Fri Mar 30 13:47:51 2012
Looking for InterSense tracking device number 1.
Please wait
Looking for UDP Broadcasts
Checking UDP port 5001... FOUND


IS-900 Series device detected on port 5001

Fri Mar 30 13:47:52 2012
Looking for InterSense tracking device number 2.
Please wait
Looking for UDP Broadcasts
Checking UDP port 5001... IN USE
Checking UDP port 5002... NOT FOUND
Checking UDP port 5003... NOT FOUND
Checking UDP port 5004... NOT FOUND
Checking UDP port 5005... NOT FOUND

InterSense tracker not present

output 2:

Quote:

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

Station State Time Cube Enhancement Sensitivity Compass Prediction
1 ON ON 1 2 3 0 0
2 ON ON 1 2 3 0 0
3 OFF ON 1 2 3 0 0
4 OFF ON 1 2 3 0 0
5 OFF ON 1 2 3 0 0
6 OFF ON 1 2 3 0 0
7 OFF ON 1 2 3 0 0
8 OFF ON 1 2 3 0 0

** Load Time: 1.67 seconds
InterSense Library ver. 4.2110 32-bit
Copyright 1998-2010 InterSense Inc.
http://www.intersense.com
Tel: 781-541-6330

Fri Mar 30 13:49:50 2012
Looking for InterSense tracking device number 1.
Please wait
Looking for UDP Broadcasts
Checking UDP port 5001... FOUND


IS-900 Series device detected on port 5001

Jeff 04-02-2012 09:57 AM

Please contact support@worldviz.com for further assistance.


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

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