WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-07-2010, 08:21 AM
kopper kopper is offline
Member
 
Join Date: Apr 2010
Posts: 18
intersense.dle extension

Hi,

I'm using a development edition of Vizard v3.18.0002 with an IS900 for tracking. My question is:

How can I get and set IS900 station parameters such as sensitivity and prediction while being able to get the tracking data?

I am using an IS-900 with 4 stations (one head tracker, two wrist trackers and one wireless wand) and I'm having trouble being able to set the stations parameters such as sensitivity as well as getting the tracking data. I can do either of those using a different extension, but I'm having trouble doing both things using the same extension.

As I can understand, there are two Intersense extensions, intersense.dls and intersense.dle.

With intersense.dls, the following code

Code:
station1 = viz.add('intersense.dls')
station2 = viz.add('intersense.dls')
will create objects for the first two stations from the Intersense device. However, with this extension, it is not possible (at least I didn't find a way how) to change the station parameters such as prediction, enhancement, sensitivity, etc. I can use station1.getData() to get an array with all position, orientation and buttons/joystick from the station.

Using the intersense.dle extension, the code looks like this:

Code:
isense = viz.add('intersense.dle')
station1 = isense.addTracker(port=1,station=1)
station2 = isense.addTracker(port=1,station=2)
This allows me to get and set parameters such as

Code:
station2.getSensitivity()
However, when I try to get the sensor data, using stationX.getData(), I get either an empty array, or an array of two elements that represents the wand joystick. I could not find a way to be able to both set the station parameters AND get the tracking data.

Any help will be appreciated.

Regis
Reply With Quote
  #2  
Old 07-07-2010, 09:30 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The old intersense.dls plugin is deprecated and you should only use the intersense.dle extension. The sensor objects returned by both of the plugins support the standard sensor methods for retrieving orientation data, sensor.getEuler(), sensor.getQuat(), sensor.getAxisAngle(), etc..

With the newer extension, there is no need to call getData(). If you want the joystick position you can use the sensor.getJoystickPosition() command.
Reply With Quote
  #3  
Old 07-08-2010, 08:45 AM
kopper kopper is offline
Member
 
Join Date: Apr 2010
Posts: 18
Thanks for the reply.

What I actually need is to get the state of the wand buttons, but I can't find what function I should use.

It would be very helpful also if you could list all the functions implemented in intersense.dls

Thank you,

Regis
Reply With Quote
  #4  
Old 07-08-2010, 09:18 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
As I previously mentioned, the intersense.dls plugin has been replaced by the intersense.dle extension. All the commands for the extension are documented in the Vizard help file. The doc page for the intersense extension even contains sample code showing how to detect button presses from a wand.
Reply With Quote
  #5  
Old 07-12-2010, 07:47 AM
kopper kopper is offline
Member
 
Join Date: Apr 2010
Posts: 18
Thanks farshizzo. I meant the documentation for intersense.dle.

Actually, I was using the online manual, as I assumed it was the most up to date documentation. I'll use the Vizard help from now on.

Thanks and sorry for the mix up.

Regis
Reply With Quote
Reply


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
RE: 'ERROR: Failed to create extension sensor with wiimote.dle' roman_suvorov Vizard 1 07-31-2008 09:43 AM


All times are GMT -7. The time now is 04:21 PM.


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