![]() |
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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)
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)
|
|
#2
|
|||
|
|||
|
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.
|
![]() |
| Tags |
| intersense, vizard 4, vrpn |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |