SDK 3.0 mocap frame data format
Posted: Thu Jan 18, 2018 5:19 am
Hello,
we recently switched to motive 2.0 and thus SDK 3.0.
Trying to run the python client in the sample folder of the SDK, however, I get strange results:
* parsing error leading to application crash:
* parsing errors (I guess) leading to "randomic" bodies IDs: with just one rigid body in the scene, before the claient crashes i get
Are these common issues/bugs or it is just me ? Where can I find the data format for SDK 3.0 mocap frames for checking what's the issue in the parsing operations ?
Regards
Dario Turchi
we recently switched to motive 2.0 and thus SDK 3.0.
Trying to run the python client in the sample folder of the SDK, however, I get strange results:
* parsing error leading to application crash:
Code: Select all
File "/home/dario/Downloads/NatNetSDK/Samples/PythonClient/NatNetClient.py", line 233, in __unpackMocapData
residual, = FloatValue.unpack( data[offset:offset+4] )
struct.error: unpack requires a bytes object of length 4
Code: Select all
File "/home/dario/Downloads/NatNetSDK/Samples/PythonClient/NatNetClient.py", line 81, in __unpackRigidBody
rot = Quaternion.unpack( data[offset:offset+16] )
struct.error: unpack requires a bytes object of length 16
Code: Select all
File "/home/dario/Downloads/NatNetSDK/Samples/PythonClient/NatNetClient.py", line 78, in __unpackRigidBody
pos = Vector3.unpack( data[offset:offset+12] )
struct.error: unpack requires a bytes object of length 12
Code: Select all
Received frame for rigid body 1
Received frame for rigid body 1064778954
Received frame for rigid body 196608
Received frame for rigid body 1188839327
Received frame for rigid body 3185192752
Received frame for rigid body 1075996262
Exception in thread Thread-1:
... [etc] ...
Regards
Dario Turchi