NatNet 2.5: latency vs. timecode

NatNet, VRPN, TrackD, and Plugins
Post Reply
rocketman768
Posts: 2
Joined: Tue Nov 26, 2013 10:19 am

NatNet 2.5: latency vs. timecode

Post by rocketman768 »

The direct depacketization example's unpack() function reads three variables at the end of the packet: `latency`, `timecode`, and `timecodeSub`. From what I can see, the `latency` variable represents the true timecode, incrementing by 1.0 for every tick on my eSync. The timecode variables are always 0. Is this correct, and under what conditions should I interpret this `latency` variable as the timecode?

Code: Select all

// latency
float latency = 0.0f; memcpy(&latency, ptr, 4);  ptr += 4;
printf("latency : %3.3f\n", latency);

// timecode
unsigned int timecode = 0;    memcpy(&timecode, ptr, 4); ptr += 4;
unsigned int timecodeSub = 0; memcpy(&timecodeSub, ptr, 4); ptr += 4;
morgan
NaturalPoint Employee
NaturalPoint Employee
Posts: 199
Joined: Tue Jun 24, 2008 2:01 pm
Location: Corvallis, OR, USA
Contact:

Re: NatNet 2.5: latency vs. timecode

Post by morgan »

The Timecode parameter in interpreted differently when streaming Live or from File Playback (Edit).

In Live mode, the Timecode parameter is only valid when SMPTE timecode is present in your Mocap hardware setup, typically when using the eSync and a timecode generator. When present, the Timecode parameter will be a correctly formatted SMPTE timecode value.

In Edit Mode, the Timecode parameter is the current frame number converted to SMPTE Timecode format.

The NatNet SDK provides helper routines to decode the Timecode parameter into a string friendly format as well as the subframe of mocap data that may exist between whole timecode frames.

Latency is the capture computer's hardware timestamp for the given frame, which is also displayed in Motive in the Camera Preview viewport when camera info is enabled. This is the same whether live or playback from file.

Hope this helps,

Morgan
henn9438
Posts: 3
Joined: Tue Dec 17, 2013 4:06 am

Re: NatNet 2.5: latency vs. timecode

Post by henn9438 »

Is your code implemented in such a way that the order in these three types is always the same for these three sets within a single frame?
ccna-training.co [url=http://www.ccna-training.co/]ccna-training.co[/url] brain-dump [url=http://www.brain-dump.co/]http://www.brain-dump.co[/url] click here [url=http://www.leatherjacket.ws]click here[/url] handbags4sure [url=http://www.handbags4sure.com]http://handbags4sure.com[/url]
henn9438
Posts: 3
Joined: Tue Dec 17, 2013 4:06 am

Re: NatNet 2.5: latency vs. timecode

Post by henn9438 »

I am not loading a project because I only work with the markers.
ccna-training.co [url=http://www.ccna-training.co/]ccna-training.co[/url] brain-dump [url=http://www.brain-dump.co/]http://www.brain-dump.co[/url] click here [url=http://www.leatherjacket.ws]click here[/url] handbags4sure [url=http://www.handbags4sure.com]http://handbags4sure.com[/url]
Post Reply