NatNatML vs. NatNet
Posted: Mon Dec 14, 2015 6:30 am
Hi,
I am trying to use NatNet to transmit tracking data from a tracking server to a client. At the end, I desire to -from the client- query the server to do a measurement of some rigidbodies, and send them to the client.
Relying on the samples "SimpleServer" and "SampleClient", this seams to work just fine. So from the client program, I just need to make a call like
sFrameOfMocapData* pData = theClient->GetLastFrameOfData();
On the Server side, the server recieves a request with message ID NAT_REQUEST_FRAMEOFDATA
The server then does the following
BuildFrame(g_lCurrentFrame++, &descriptions, &frame);
theServer->PacketizeFrameOfMocapData(&frame, pPacketOut);
As I said, this worked just fine...... Now I tried to do the same with Matlab on the side of the client. I also relied on the NatNetMatlabSample. By debugging, I found that a call like this in the matlab program
data = theClient.GetLastFrameOfData();
would triger nothing on the server. I.e., no message is sent to the server! But if the server has sent a frame, the call will always gets this last frame.
My question is: Is the behavior of the server class in the original library and the matlab library different? Where can I find a dicumentation for the matlab library?
mush thanx
I am trying to use NatNet to transmit tracking data from a tracking server to a client. At the end, I desire to -from the client- query the server to do a measurement of some rigidbodies, and send them to the client.
Relying on the samples "SimpleServer" and "SampleClient", this seams to work just fine. So from the client program, I just need to make a call like
sFrameOfMocapData* pData = theClient->GetLastFrameOfData();
On the Server side, the server recieves a request with message ID NAT_REQUEST_FRAMEOFDATA
The server then does the following
BuildFrame(g_lCurrentFrame++, &descriptions, &frame);
theServer->PacketizeFrameOfMocapData(&frame, pPacketOut);
As I said, this worked just fine...... Now I tried to do the same with Matlab on the side of the client. I also relied on the NatNetMatlabSample. By debugging, I found that a call like this in the matlab program
data = theClient.GetLastFrameOfData();
would triger nothing on the server. I.e., no message is sent to the server! But if the server has sent a frame, the call will always gets this last frame.
My question is: Is the behavior of the server class in the original library and the matlab library different? Where can I find a dicumentation for the matlab library?
mush thanx