Page 1 of 1

Remote trigger of Motive with Labview and Python Client

Posted: Sat Nov 11, 2017 3:58 am
by adrianaoliva
Hi,
I am trying to create a remote trigger of Motive in NatNet SDK with Labview via the Python Client in order to syncronize data from Motive and Labview.

The first problem that I am having is that, if I use the Python Client Sample provided by NatNet SDK it gives me the following error:

Code: Select all

rot = Quaternion.unpack( data[offset:offset+16] )
struct.error: unpack requires a buffer of 16 bytes
I've read that it may be because of the direct depacketization that is using Python Client and that I have to update the parsing routines of the bit-stream packet syntax. The thing is that I don't know how I can do it. Anyone can help me? :cry:

I am relatively new at programing and I have no knowledge of C.

Thank you!!

Re: Remote trigger of Motive with Labview and Python Client

Posted: Mon Nov 13, 2017 3:30 pm
by ryanhaun
Hi Adriana,

It looks like the error is coming from the assignment to "rot", which appears to not be a buffer of 16 bytes. Try making that change to see if your issue is resolved.

Kind Regards,
Ryan Haun
OptiTrack Support

Re: Remote trigger of Motive with Labview and Python Client

Posted: Tue Nov 14, 2017 3:16 am
by adrianaoliva
i am not able to get the correct data from motive 2.0 and the python example script.
i am using the latest natnet sdk.

can we do a teamviewersession ? i am sure you can solve this issue very quickly.