WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 01-25-2006, 10:27 AM
kgarr kgarr is offline
Member
 
Join Date: Jan 2006
Location: Glassboro, NJ
Posts: 22
ImmersaDesk system tracking

We use an ImmersaDesk R2 VR system. The system has two computers. One does mostly just the graphics, while the other does the tracking.

The tracking computer has a Flock of Birds card and runs a trackd server, provided to us by VRCO (http://www.vrco.com). The graphics computer runs a trackd client which receives tracking data from the tracking computer via an RS232 connection. We are not sure exactly what information is being sent, but we do know that trackd can be used for more that just Flock of Birds.

We would prefer not to alter the set up, as we will still need to use this system for vGeo, but we are very interested in Vizard.

Would anyone out there have any insight into how we can use this tracking setup with Vizard?
Reply With Quote
  #2  
Old 01-25-2006, 12:55 PM
kgarr kgarr is offline
Member
 
Join Date: Jan 2006
Location: Glassboro, NJ
Posts: 22
I found a trackdAPI that allows for the trackd output to be shared. I'll need to look into that. I'm still not sure how I'm going to get from the API to Vizard
Reply With Quote
  #3  
Old 01-25-2006, 01:15 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

If you have the API then you can create a Vizard sensor plugin that will read the data and pass it to your script. You can download the Vizard SDK which includes a sample sensor plugin. Or you can send the trackdAPI to support@worldviz.com and we can create one for you.
Reply With Quote
  #4  
Old 01-26-2006, 10:01 AM
kgarr kgarr is offline
Member
 
Join Date: Jan 2006
Location: Glassboro, NJ
Posts: 22
Smile

Thanks, I requested a copy of the API. Once it comes in, I'll send it your way. Thanks again.
Reply With Quote
  #5  
Old 04-09-2006, 05:47 PM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 223
We have finished and tested to the Vizard trackD plugin as attached to this post. Along with the .dls file there is attached a sample python script which should illustrate how the plug-in works. Please try this out and let us know if you have any problems or suggestions for improvement.
Attached Files
File Type: zip trackd.zip (6.7 KB, 3809 views)
Reply With Quote
  #6  
Old 04-11-2006, 09:25 AM
kgarr kgarr is offline
Member
 
Join Date: Jan 2006
Location: Glassboro, NJ
Posts: 22
The plugin works.

However, at times, either or both of the markers will snap back to the middle of the screen, pointing to the right. I don't know if it is the software or our sensors.

I was also wondering if one of the sensors could be easily set up to do head tracking.
Reply With Quote
  #7  
Old 04-11-2006, 10:20 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

I'm not sure what is causing that. I've made one small change that might fix that, it's attached below. If it doesn't fix your problem, then it is either the trackd software or the sensor.

To link a sensor to the viewpoint do the following:
Code:
viz.get(viz.MAIN_VIEWPOINT).link(sensor)
Attached Files
File Type: zip trackd2.zip (6.3 KB, 3888 views)
Reply With Quote
  #8  
Old 04-11-2006, 11:29 AM
kgarr kgarr is offline
Member
 
Join Date: Jan 2006
Location: Glassboro, NJ
Posts: 22
Grabbing the information form the tracker, I got 7 numbers. I was only expecting 6. What do these values correspond to?
Reply With Quote
  #9  
Old 04-11-2006, 11:43 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

The first 3 values are the position and the remaining 4 numbers are the quaternion rotation.
Reply With Quote
  #10  
Old 09-14-2006, 10:50 AM
kgarr kgarr is offline
Member
 
Join Date: Jan 2006
Location: Glassboro, NJ
Posts: 22
I am not familiar with quaternions. How do I get the angle the sensor is held at from that data?

What I am trying to do is draw a line, using the on the fly functions, that starts at my location and extends out based on the angle of the sensor in my Wanda to be used like a laser pointer.

Last edited by kgarr; 09-14-2006 at 10:54 AM.
Reply With Quote
  #11  
Old 09-14-2006, 11:17 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Is the length of the line fixed?

Either way, just translate and rotate the line to the position/rotation of the sensor.
Code:
#Create line of length 1
viz.startlayer(viz.LINES)
viz.vertex(0,0,0)
viz.vertex(0,0,1)
line = viz.endlayer()
line.dynamic()

.
.
.

#Update line based on sensor data
data = sensor.get()
line.translate(data[:3])
line.rotatequat(data[3:7])

#If line length is dynamic, then update it
line.vertex(1,0,0,length)
There are utility function in the vizmat module to convert quaternions into other angles, vizmat.QuatToEuler(q) and vizmat.QuatToAxisAngle(q)
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 06:12 PM.


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