WorldViz User Forum  

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

Reply
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1  
Old 07-07-2009, 11:49 PM
mjabon mjabon is offline
Member
 
Join Date: Jul 2007
Posts: 63
Is there any way to do it with serial?
Reply With Quote
  #2  
Old 07-08-2009, 11:44 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
For example, if you only had one marker with ID 4 being tracked you would need to add ppt.dls four times to get marker 4. Trackers 1-3 would not have any data.
Code:
tracker1 = viz.add('vizppt.dls') 
tracker2 = viz.add('vizppt.dls') 
tracker3 = viz.add('vizppt.dls') 
tracker4 = viz.add('vizppt.dls')
Is it difficult for you to switch over to using VRPN?
Reply With Quote
  #3  
Old 07-09-2009, 01:29 PM
mjabon mjabon is offline
Member
 
Join Date: Jul 2007
Posts: 63
We cannot easily switch to VPRN as we have an entire library of files that all use serial and we would prefer to leave the code.

We have tried the following code:

Code:
    viz.tracker()                        # start tracking
    
    lowarmleft_ppt_1 = viz.add('vizppt.dls')
    #lowarmleft_ppt_1.command(5,'',5)
    lowarmright_ppt_3 = viz.add('vizppt.dls')
    #lowarmright_ppt_3.command(5,'',5)
    uparmleft_ppt_2 = viz.add('vizppt.dls')
    uparmleft_ppt_2.command(5,'',5)
    uparmright_ppt_4 = viz.add('vizppt.dls')
    uparmright_ppt_4.command(5,'',5)
    
    lowarmleft_ppt_1.reset()
    lowarmright_ppt_3.reset()
    uparmleft_ppt_2.reset()
    uparmright_ppt_4.reset()
   


newline = ''
            newline += str(lowarmleft_ppt_1.get()[:]) + ' ' + str(lowarmright_ppt_3.get()[:]) + ' ' +  str(uparmleft_ppt_2.get()[:]) + ' ' +  str(uparmright_ppt_4.get()[:]) + '\n'
            print newline
We get all zeros.

Any suggestions?
Reply With Quote
  #4  
Old 07-09-2009, 07:38 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
It looks like the resets cause the values to be zero. What are the ID's of the markers used?
Reply With Quote
  #5  
Old 07-09-2009, 10:57 PM
mjabon mjabon is offline
Member
 
Join Date: Jul 2007
Posts: 63
We were using IDs 1-4.

If we do not reset the ppts how will they know when they are in the center of the room? Normally we have our subject stand at a certain line and hit reset. That should only make 1 line be zeros, not all of them, right?
Reply With Quote
Reply

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
Creating a Vizard Sensor Plugin farshizzo Plug-in development 25 08-01-2019 12:24 AM
Live Characters plugin Frank Verberne Vizard 7 03-01-2012 02:23 AM
Howto debug a custom plugin? reedev Plug-in development 3 04-23-2009 02:16 PM
ImmersaDesk system tracking kgarr Vizard 10 09-14-2006 11:17 AM
Could not find plugin to load objects... halley Vizard 1 05-30-2006 11:01 AM


All times are GMT -7. The time now is 07:21 AM.


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