Page 1 of 1

Timestamps in Rigid Body VRPN streaming

Posted: Thu Jan 31, 2008 7:29 am
by hpcv
It seems that the timestamps in the streamed VRPN from the Rigid Body Tool are always zero. This can be seen if you take the VRPN client application from here:
http://www.naturalpoint.com/optitrack/s ... #streaming
Direct link to the zip file:
http://media.naturalpoint.com/software/ ... eaming.zip

Then modify the change callback in a straightforward way to display the timestamps:

Code: Select all

void VRPN_CALLBACK handle_pos (void *, const vrpn_TRACKERCB t)
{
    printf("Tracker Position:(%.4f,%.4f,%.4f) Orientation:(%.2f,%.2f,%.2f,%.2f) Time: %i.%06i\n",
           t.pos[0], t.pos[1], t.pos[2],
           t.quat[0], t.quat[1], t.quat[2], t.quat[3],
           t.msg_time.tv_sec, t.msg_time.tv_usec);
}
And voila, the time is always 0.0.

If the Rigid Body library/application really does not output timestamps, I would be really really happy if that feature was added. Really happy :)

If it's just me doing something stupid, please whack me on the head and explain what I should do differently ;)

Re: Timestamps in Rigid Body VRPN streaming

Posted: Thu Jan 31, 2008 11:40 am
by beckdo
Let me look into this, it's likely that it's just not populating that information. If it isn't, we'll get it added and get an updated version posted.

Re: Timestamps in Rigid Body VRPN streaming

Posted: Tue Feb 05, 2008 1:54 am
by hpcv
Any updates on this?

Re: Timestamps in Rigid Body VRPN streaming

Posted: Wed Feb 06, 2008 4:05 pm
by beckdo
I have followed-up with the VRPN guys on this particular topic. My goal is to have this in the next release.