Timestamps in Rigid Body VRPN streaming

Post Reply
hpcv
Posts: 58
Joined: Tue Oct 23, 2007 2:09 pm

Timestamps in Rigid Body VRPN streaming

Post 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 ;)
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: Timestamps in Rigid Body VRPN streaming

Post 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.
hpcv
Posts: 58
Joined: Tue Oct 23, 2007 2:09 pm

Re: Timestamps in Rigid Body VRPN streaming

Post by hpcv »

Any updates on this?
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: Timestamps in Rigid Body VRPN streaming

Post by beckdo »

I have followed-up with the VRPN guys on this particular topic. My goal is to have this in the next release.
Post Reply