WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-16-2016, 05:26 AM
Rennschu Rennschu is offline
Member
 
Join Date: Sep 2015
Posts: 14
OptiTrack plug-in - stream unlabeled marker

Dear all,

I have recently bought an Optitrack V120:Trio System and I am currently trying to stream tracking data from Optitracks Software Motive to Vizard. I am using the following code:

Code:
import viz
viz.go
optitrack = viz.add('optitrack.dle')
motive = optitrack.addMotive('127.0.0.1')
print motive.getMarkerList()
I have the following problems:
1) The returned marker list does not contain the label names, but names like "__builtin__._OptiTrackMarker(1)"
2) Unlabeld markers are not contained in the returned marker list. However, it is not possible to label single marker in Motive in Live mode. However, I do need to stream the position of single markers.

Any ideas?

Kind regards,
Rennschu
Reply With Quote
  #2  
Old 06-18-2016, 02:10 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Does the marker have an index? If so, you could try the motive.getMarker(val) command and use the index value.
Reply With Quote
  #3  
Old 06-20-2016, 06:13 AM
Rennschu Rennschu is offline
Member
 
Join Date: Sep 2015
Posts: 14
Hi Jeff,

we use the following code to try to get coordinates of the marker positions:
Code:
import viz
viz.go()

optitrack = viz.add('optitrack.dle')
motive = optitrack.addMotive('127.0.0.1')
	
print motive.getMarkerList()
marker =  motive.getMarker(0)
print marker.getPosition()

The code returns the following text:
************************************************** ****************************
** Loading optitrack.py
************************************************** ****************************
optitrack.dle OptiTrack Extension
** OptiTrack: [Client] Initializing using ethernet address: 127.0.0.1
** OptiTrack: [Client] Initializing command listener.
** OptiTrack: [Client] Initializing data listener.
** OptiTrack: [Client] Connected. (HostApp: HostVer: 0.0.0.0 HostIP: 127.0.0.1 ()
[__builtin__._OptiTrackMarker(1), __builtin__._OptiTrackMarker(2), __builtin__._OptiTrackMarker(3), __builtin__._OptiTrackMarker(4)]
[0.0, 0.0, 0.0]
** Load Time: 0.24 seconds



So, we have the two problems:
1) The position is always [0.0,0.0,0.0]
2) Markers not belonging to a rigid body do not appear in the MarkerList

Could you help us with that?
Reply With Quote
  #4  
Old 06-21-2016, 12:00 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
I'll follow up with a developer. Can you tell me which versions of Vizard 5, Motive software, and Windows you are running?
Reply With Quote
  #5  
Old 06-21-2016, 06:56 AM
Rennschu Rennschu is offline
Member
 
Join Date: Sep 2015
Posts: 14
Thank you, I am looking forward to your answer.

Vizard Development (64-bit) 5.3
Motive Version 1.9.0 64-bit
Windows 8.1 Enterprise Version 6.3.9600
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
marker id plug-in Vkathrynr Precision Position Tracker (PPT) 1 09-25-2009 03:31 PM


All times are GMT -7. The time now is 10:08 AM.


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