WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-19-2013, 09:49 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The vicon plug-in works with a protocol used by earlier versions of Tracker. You should be able to use vrpn to read body data from tracker in Vizard once you specify the correct VRPN source.

Code:
import viz
import vizact
import vizshape

viz.go()

VRPN_SOURCE = 'Tracker0@localhost'

viz.move([0,-1,-5])

axes = vizshape.addAxes(length=0.5)

vrpn = viz.add('vrpn7.dle')
headtracker = vrpn.addTracker(VRPN_SOURCE)
headtracker.swapPos([-1,3,-2])

viz.link(headtracker,axes)

def showData():
	print headtracker.getPosition()
	print headtracker.getEuler()
	
vizact.ontimer(1,showData)
Reply With Quote
 


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
Getting positional data from tracker AySz88 Vizard 1 08-03-2011 03:22 PM
About using Vicon Tracker with world viz llqqff Vizard 1 06-28-2010 09:28 AM
vicon pluglin - cluster problems Andy Vizard 2 11-10-2009 01:04 AM
The problem of tracker using via VRPN _kj_ Vizard 2 08-13-2009 12:03 AM
Integrating InertiaCube and Vicon data roman_suvorov Vizard 10 05-20-2008 04:30 PM


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


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