Search found 5 matches

by jaykay
Thu Dec 04, 2014 1:58 am
Forum: Motive
Topic: PacketClient packet calculation
Replies: 4
Views: 1170

Re: PacketClient packet calculation

(2 MessageID) (2 nBytes) ID=7: 4 frameNumber 4 nMarkerSets 4 nOtherMarkers 4 nRigidBodies _____ 16 nRB=1: 32 ID,x,y,z,qx,qy,qz,qw 4 nRigidMarkers 36 nBytes NatNet>2.x: 12 nBytes 12 nBytes NatNet>2.x: 4 fError _____ 100 +16 =116 4 nSkeletons (=0) 4 nLabeledMarkers (=0) 4 latency 4 timecode 4 timecode...
by jaykay
Wed Nov 26, 2014 8:00 am
Forum: Motive
Topic: PacketClient packet calculation
Replies: 4
Views: 1170

PacketClient packet calculation

Hello, i want to calculate a packet... NatNetVersion is 2.5. I have got 2 rigid bodies and i don't stream markers. The first value is Message ID = 7 and then nBytes = 240. And thats the correct value, but when i sum-up the packet i got the value 246. Did i missed something? I am using the NatNetSDK2...
by jaykay
Fri Nov 14, 2014 1:10 am
Forum: Motive
Topic: Realtime Streaming with C mex s-Function
Replies: 1
Views: 875

Re: Realtime Streaming with C mex s-Function

If comment the lines:

sFrameOfMocapData* pData = theClient->GetLastFrameOfData();
y[0] = pData->iFrame;

and replace them with y[0] = 42 i don't get an error.
It seems that NatNatClient causes the Matlab crash. Maybe it's a memory allocation error.
Is there anybody who can help me?
by jaykay
Tue Nov 11, 2014 3:15 am
Forum: Motive
Topic: Realtime Streaming with C mex s-Function
Replies: 1
Views: 875

Realtime Streaming with C mex s-Function

Hello Everybody, i am trying to creat a block diagram in Simulink. Then i want to build a Realtime Windows Target with the Simulink Coder. For this i created a C mex s-Function which receives data from Motive and returns Location and Orientation. I used the mex-Compiler to compile it and insert it i...
by jaykay
Tue Nov 04, 2014 6:36 am
Forum: Tracking Tools
Topic: Tracking tools - Matlab and Labview
Replies: 33
Views: 35790

Re: Tracking tools - Matlab and Labview

Hi, I was able to create a s-function for simulink. The function imports the angel and position data from tracking tools. Hope this is helpfull for some of you. Hi, i created a Matlab s-function for Motive, very similar to your code. But i can't build code with Simulink Coder. I need a C mex s-func...