![]() |
|
|
|
#1
|
|||
|
|||
|
Does the marker have an index? If so, you could try the motive.getMarker(val) command and use the index value.
|
|
#2
|
|||
|
|||
|
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? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| marker id plug-in | Vkathrynr | Precision Position Tracker (PPT) | 1 | 09-25-2009 04:31 PM |