forums.naturalpoint.com

Discussion and Support for the OptiTrack, SmartNav and TrackIR brands by NaturalPoint

Natnet PacketClient - Problem with the second rigid body

NatNet, VRPN, TrackD, and Plugins

by lilach99 » Thu Oct 05, 2017 10:00 am

Hi evreyone,

I'm using an Optitrack system to track some small cars. I have to get the car's locations (coordinates) and rotation in real time.

For this I use the Natnet library, specificaly the PacketClient code. I put more than one car in the cameras frame, and runned the PacketClient code. Each car was a rigid body of 3 markers. For the first rigid body in the Motive, the code worked good and I succeed getting the right coordinates of the car. But for the second, third and all other rigid bodies (cars), the code returned "gibrish" coordinates, which were wrong and even not stable (they had been changed from negative to possitive and from small to big fastly)...

I don't know what causes this problem... Can someone help me and tell me what can I do?

Thanks!
lilach99
 
Posts: 2
Joined: Thu Oct 05, 2017 9:43 am

by steven.andrews » Thu Oct 05, 2017 4:01 pm

Hello lilach99,

Thank you for reaching out to the community regarding your NatNet streaming efforts.

The PacketClient utilized direct depacketization to acquire data from the realtime stream, and this process is sensitive to changes made in the stream protocol. You may need to verify the version of NatNet you are using is from the time your version of Motive was released. Motive 2.0 will require that you use NatNet 3.0.

If you are running in a Windows environment, you may want to use one of the other samples as a starting point since the normal libraries are less susceptible to these changes.

If you continue to struggle with this, please feel free to open a Support ticket with us so we can be sure everything is working correctly. When submitting your ticket, we will need to know the version of Motive and NatNet you are using. If you have made any changes to the sample application, it would be useful to know this as well.

Thanks again,
Steven
--
Steven Andrews
OptiTrack | Senior Customer Support Engineer
help.naturalpoint.com
support@optitrack.com
steven.andrews
NaturalPoint Employee
NaturalPoint Employee
 
Posts: 356
Joined: Mon Jan 19, 2015 11:52 am

by lilach99 » Sat Oct 07, 2017 10:44 am

Hello Steven,

First of all thank you!

The MotiveTracker version is 1.8.0 and the Natnet version is 3.0.
Can you please tell me which version of Natnet is feet to MotiveTracker 1.8.0?

Thanks again!
Lilach
lilach99
 
Posts: 2
Joined: Thu Oct 05, 2017 9:43 am

by steven.andrews » Mon Oct 09, 2017 9:27 am

My pleasure Lilach,

NatNet 2.8 was released for Motive 1.8 compatibility, so you might try the PacketClient in that version.

Please note that we do require users to maintain an unexpired license in order to remain eligible for Support. If you continue to struggle to get the streaming working, we will not be able to work in Motive 1.8 with you. If you are able, you may want to consider updating to the current version.

Best of luck!
Steven
--
Steven Andrews
OptiTrack | Senior Customer Support Engineer
help.naturalpoint.com
support@optitrack.com
steven.andrews
NaturalPoint Employee
NaturalPoint Employee
 
Posts: 356
Joined: Mon Jan 19, 2015 11:52 am


Return to OptiTrack Data Streaming