WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-17-2008, 11:33 AM
smith11235 smith11235 is offline
Member
 
Join Date: Jul 2008
Posts: 8
sensor linking question

Hey,
I've found some other posts/examples that seem to take a complicated approach to what I am trying to do and was hoping if someone could tell me if the following simple approach was possible:

I have an emagine 3d visor and also a polhemus motion tracker.

I have successfully linked the main view to both of these devices separately as follows:

polhemus = viz.add('polhemus.dle);
patriot = polhemus.addPatriot();
link = viz.link(patriot,viz.MainView);

And also in another script:
emagin = viz.add('emagin.dls');
viz.link(emagin, viz.MainView);


However, what I would like to do is control the 'head view' of the world with the emagine sensors, and the movement with the Patriot sensor ideally with something similar to the following:

emagin = viz.add('emagin.dls');
viz.link(emagin, viz.HeadView);#attach users 'eyes' to visor

polhemus = viz.add('polhemus.dle);
patriot = polhemus.addPatriot();
link = viz.link(patriot,viz.Body);#let user move independently of where they are looking

I am hoping that this is just a matter of linking the correct objects which have so far eluded me to the sensors.

Any pointers would be greatly appreciated.

Thank you in advance
Reply With Quote
  #2  
Old 07-17-2008, 11:37 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
To be clear, you want the orientation of the viewpoint to come from the emagin and the position to come from the patriot?
Reply With Quote
  #3  
Old 07-17-2008, 11:38 AM
smith11235 smith11235 is offline
Member
 
Join Date: Jul 2008
Posts: 8
yes, that would be correct.
Reply With Quote
  #4  
Old 07-17-2008, 11:41 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Then the simplest solution would be to use the viz.mergeLinkable command. Have a look in the docs for an explanation. Here is some simple code showing how to use it:
Code:
#Combine position of patriot and ori of emagin into one sensor
tracker = viz.mergeLinkable(patriot,emagin)

#Link tracker to main viewpoint
headLink = viz.link(tracker,viz.MainView)
Reply With Quote
  #5  
Old 07-24-2008, 09:28 AM
smith11235 smith11235 is offline
Member
 
Join Date: Jul 2008
Posts: 8
Thanks for your help. That worked great, I had missed that function while looking through the help files.
Reply With Quote
  #6  
Old 05-30-2011, 04:57 AM
francesco.alett francesco.alett is offline
Member
 
Join Date: May 2011
Posts: 1
hi! i have a an emagin z800 3d visor and a polhemus tracker too; both are working (can see the desktop in the eye-screen an so on...) i'm trying to run the script as you suggested, but i read this error message in the output box when launching:

polhemus.dle Polhemus Extension
** ERROR: Failed to connect to a Patriot/Liberty: Device not found
** ERROR: Failed to create extension sensor with polhemus.dle
** ERROR: Link failed (source linkable is invalid)
emagin.dls eMagin v2.0
** ERROR: Could not connect to eMagin device. Error: 80000017
** ERROR: Link failed (source linkable is invalid)

could you help me please? thank you very much
Reply With Quote
  #7  
Old 05-31-2011, 04:58 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Vizard is not able to connect to either the Polhemus or Emagin sensors.

Polhemus - Test with the following script:
Code:
import viz
viz.go()

polhemus = viz.add('polhemus.dle')
patriot = polhemus.addPatriot()
viz.link(patriot,viz.MainView)
If you get errors verify that you can connect to the Polhemus device in PiMgr. When running Vizard, PiMgr should be closed.

Emagin - Try the following:
Code:
import viz
viz.go()

emagin = viz.add('emagin.dls') 
viz.link(emagin,viz.MainView)
Do you get errors? Have you installed the USB drivers for the Emagin sensor?
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
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 10:15 AM
viztask question asimbh Vizard 1 11-20-2007 09:12 AM
to rephrase my question... shai Vizard 2 10-27-2004 10:55 AM
Lots of Question Karthi Vizard 4 02-20-2004 06:42 PM
Basic Joystick Navigation Question Plasma Vizard 2 01-29-2004 07:08 PM


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


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