WorldViz User Forum  

Go Back   WorldViz User Forum > Precision Position Tracker (PPT)

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-02-2016, 06:52 PM
pitbool pitbool is offline
Member
 
Join Date: Oct 2012
Posts: 31
PPT markers off in Vive?

Hi,

In our lab, we are trying to run the Vive lighthouse tracking system in the same space as the Worldviz PPT system, to have extra trackers for our projects. We noticed that from the Vive pre headset, the vive handcontrollers are tracked perfectly, but the PPT markers are off by quite a bit. The offset changes as we move or rotate the PPT markers around. For example, along the X axis, an the markers are offset by around -0.15m.

Any thoughts on what can fix it?

Thanks!
Reply With Quote
  #2  
Old 05-05-2016, 10:59 AM
pitbool pitbool is offline
Member
 
Join Date: Oct 2012
Posts: 31
A gentle reminder to anyone who responds to the queries on this forum ..
Thank you in advance for your help!
Reply With Quote
  #3  
Old 05-05-2016, 07:31 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
This has been moved over to the support system.
Reply With Quote
  #4  
Old 06-09-2016, 09:25 AM
dcnieho dcnieho is offline
Member
 
Join Date: Feb 2011
Posts: 59
I may also want to use the PPT together with our Vive (the room is a little large for the lighthouse system, according to its specs anyway). So such discussions are interesting to me (before i try). Could some info/experiences be shared here?

Thanks!
Reply With Quote
  #5  
Old 06-10-2016, 12:20 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You will need to account for any origin and heading offset between the PPT and Vive. It maybe easiest to calibrate the Vive trackers to PPT coordinates since the PPT origin and orientation is clearly defined. You can place a Vive controller at the PPT origin and get an idea of the position offset.

Here's some example code to perform the alignment. Orient the HMD and Vive controller so they're facing PPT north and apply the resets:

Code:
import viz
import vizact
import vizshape
import steamvr

viz.go()

# Offset when placing Vive tracker at PPT Origin
OFFSET = [0,0,0]

hmd = steamvr.HMD()
headTracker = hmd.getSensor()
viewLink = viz.link(headTracker, viz.MainView)

viveHandControllerList = steamvr.getControllerList()
viveController = viveHandControllerList[0]

vrpn = viz.add('vrpn7.dle')

pptMarker = vrpn.addTracker('PPT0@localhost',1)

pptSphere = vizshape.addSphere(radius=0.02)
pptSphere.color(viz.RED)
viveSphere = vizshape.addSphere(radius=0.02)
viveSphere.color(viz.CYAN)

pptLink = viz.link(pptMarker, pptSphere)
viveLink = viz.link(viveController, viveSphere)

# Orient both HMD and controller to PPT North before calling reset function
def resetVive():
    viewLink.reset(viz.RESET_ORI_HEADING)
    viveLink.reset(viz.RESET_ORI_HEADING)
    viewLink.setOffset(OFFSET)
    viveLink.setOffset(OFFSET)

vizact.onkeydown('r',resetVive)
This can also be done with vizconnect. Get a handle to the tracker links and define the resetVive funtion within the postInit section of the config file. Attached is an example config.
Attached Files
File Type: zip vizconnect_config_ppt_vive.zip (2.5 KB, 4554 views)
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
detect ppt markers state from vizard script pitbool Precision Position Tracker (PPT) 0 02-15-2016 08:23 PM
Five markers play digital video anjemalo Vizard 2 10-29-2014 05:04 AM
Changing PPT markers from H mode to X daamato Precision Position Tracker (PPT) 1 06-16-2012 08:10 PM
question on linking markers in Vicon llqqff Vizard 5 04-13-2010 10:36 AM
maximum number of markers tavaksai Precision Position Tracker (PPT) 1 02-02-2006 10:09 PM


All times are GMT -7. The time now is 06:17 AM.


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