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 » Thu Jan 31, 2008 7:29 am

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
NaturalPoint Employee
NaturalPoint Employee
Posts: 519
Joined: Tue Jan 02, 2007 2:02 pm

Re: Timestamps in Rigid Body VRPN streaming

Post by beckdo » Thu Jan 31, 2008 11:40 am

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 » Tue Feb 05, 2008 1:54 am

Any updates on this?

beckdo
NaturalPoint Employee
NaturalPoint Employee
Posts: 519
Joined: Tue Jan 02, 2007 2:02 pm

Re: Timestamps in Rigid Body VRPN streaming

Post by beckdo » Wed Feb 06, 2008 4:05 pm

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

Post Reply