[NatNet] get Rigid Bodies coordinates from their names

NatNet, VRPN, TrackD, and Plugins
Post Reply
courrier
Posts: 8
Joined: Thu Dec 11, 2014 11:49 am

[NatNet] get Rigid Bodies coordinates from their names

Post by courrier » Wed Feb 10, 2016 2:46 pm

Hey guys,

Is there a way to identify rigid bodies thanks to their names instead of their numerical ID using NatNet, just like VRPN does?

I'm looking for the association rigid_body_name => (position, quaternion), the NatNet protocol natively returns rigid_body_id => (its_center.position, its_center.quaternion), but I need to find somewhere rigid_body_name => rigid_body_id.

It looks like the only location where rigid body names are provided is within the marker sets section, but it only associates the rigid_body_names to ..... the 3D coordinates of its markers, which doesn't help at all.

Any idea about how to find this association somehow?

morgan
NaturalPoint Employee
NaturalPoint Employee
Posts: 200
Joined: Tue Jun 24, 2008 2:01 pm
Location: Corvallis, OR, USA
Contact:

Re: [NatNet] get Rigid Bodies coordinates from their names

Post by morgan » Wed Apr 27, 2016 11:33 am

In the DataDescriptions packet, sRigidBodyDescription contains the RigidBody name and it's ID, which can be used to store in a lookup. This lookup can then be used in the FrameOfMocapData delivery to associate the Rigid
Body ID with it's name.

I think the WinForms sample app illustrates this approach.

Let us know if you are unable to make this work.

Morgan

Post Reply