WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-01-2015, 10:56 AM
vlc vlc is offline
Member
 
Join Date: Jun 2015
Posts: 3
Using VRPN and INtersense to Connect Computer A with Computer B

Hello,

I have an IS-900 connected to Computer A and running Vizard. Computer B is not connected to IS-900 but does run Vizard. Is there a way (maybe through VRPN) that allows computer B to connect to the IS-900 which is connected to computer A?
Reply With Quote
  #2  
Old 06-02-2015, 11:53 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Can you describe the setup and what you're trying to accomplish? You could send data from one Vizard app to another using a VRPN server or network commands but there will be added latency.
Reply With Quote
  #3  
Old 06-02-2015, 12:00 PM
vlc vlc is offline
Member
 
Join Date: Jun 2015
Posts: 3
Hi Jeff,

Computer A has the IS900, however I want Computer B to be able to connect to the tracker on the IS900 using VRPN. I know that you mentioned in other posts how to create the stream, but my question is: how do you actually obtain the data from the stream. If Computer A has the VRPN stream running, how would I get that data from the stream using computer B. Does that make sense?
Reply With Quote
  #4  
Old 06-02-2015, 03:49 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Here's an example using a keyboard tracker.

Server Code:

Code:
'''
Press the wasd keys to move the tracker
'''

import viz
import vizcam
import vizinfo
import vizact
viz.go()

vizinfo.InfoPanel()

vrpn = viz.add('vrpn7.dle')
server = vrpn.addTrackerServer('VizardTracker')
tracker = vizcam.addKeyboardPos()
server.setTracker(tracker)

def printData():
	print tracker.getPosition()
	
vizact.onupdate(0,printData)
Client Code:

Code:
'''
Press the wasd keys in the server window to 
move the axes model here in the client
'''

import viz
import vizshape
import vizinfo

viz.go()

vizinfo.InfoPanel()

viz.move([0,0,-6])
viz.addChild('sky_day.osgb')
axes = vizshape.addAxes()

vrpn = viz.add('vrpn7.dle') 
tracker = vrpn.addTracker('VizardTracker@localhost')
viz.link(tracker,axes)
Reply With Quote
  #5  
Old 06-03-2015, 02:44 PM
vlc vlc is offline
Member
 
Join Date: Jun 2015
Posts: 3
Thanks a lot, Jeff. Was able to make it work through a wired connection. Do you happen to know if I could try doing this via wireless connection? I tried doing it with the IP Address but that doesn't seem to help. I tried doing @IPADDRESS instead of @hostname.
Reply With Quote
  #6  
Old 06-05-2015, 04:33 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
VRPN data can be sent over a wireless connection. The code should be the same for either a wired or wireless setup.
Reply With Quote
Reply

Tags
intersense, vizard 4, vrpn

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
Exposing an intersense cube via VRPN nihohit Precision Position Tracker (PPT) 5 09-10-2012 05:00 PM
intersense addTracker krimble Vizard 4 04-02-2012 10:57 AM
VRPN quaternion conversion from PPT from Intersense InertiaCube willemsn Precision Position Tracker (PPT) 0 07-20-2011 02:59 PM


All times are GMT -7. The time now is 12:00 PM.


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