Determine whether rigid body is not tracked using NatNet

NatNet, VRPN, TrackD, and Plugins
Post Reply
christoph
Posts: 3
Joined: Mon Sep 01, 2014 5:45 am

Determine whether rigid body is not tracked using NatNet

Post by christoph » Wed Sep 03, 2014 1:20 am

What is the official way to determine that a rigid body is currently not seen in NatNet? I test for all members being zero, but I am not sure whether this is sufficient.

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

Re: Determine whether rigid body is not tracked using NatNet

Post by morgan » Thu Oct 02, 2014 10:22 am

New to NatNet SDK v2.6 is the TrackingValid flag for rigid bodies. See the SampleClient for an example of how to use, but basically:

Code: Select all

        // params
        // 0x01 : bool, rigid body was successfully tracked in this frame
        bool bTrackingValid = data->RigidBodies[i].params & 0x01;
Morgan

Post Reply