Discussion and Support for the OptiTrack, SmartNav and TrackIR brands by NaturalPoint

[Matlab] Getting correct number of Rigid Bodies or Markers

NatNet, VRPN, TrackD, and Plugins

by phnguyen » Wed Apr 26, 2017 1:57 am

Dear all,

I have been trying to get the number of rigid body, unlabeled, and labeled markers using a similar command:

That was found in the NatNetMatlabSample.m file, but it keeps giving me 1000 back.

I know the correct data is there (Ex:):

Rigid Body : RigidBody 1
MarkerSet : RigidBody 1
MarkerSet : all

Rigid Body : RigidBody 1 (ID=1, ParentID=-1)

Markerset : RigidBody 1 (3 markers)
Marker : Marker1 (ID=1)
Marker : Marker2 (ID=2)
Marker : Marker3 (ID=3)

And: 2017/4/26 1:28:41.531 natnet - number of trackables: 3
2017/4/26 1:28:41.545 natnet - number of markersets: 2
2017/4/26 1:28:41.545 natnet - number of rigid bodies: 1

But I don't know how to get that data.

Thank you for your help.
Posts: 1
Joined: Wed Apr 26, 2017 1:50 am

Return to OptiTrack Data Streaming