Rigid Body IDs with Arena and NatNet
Posted: Wed Jan 20, 2010 12:36 pm
I am trying to stream a couple simple rigid bodies with the Arena software to the NatNet sample apps (I will write a custom app once I verify this will work). I am having problems distinguishing between two rigid bodies - they both have an ID of 1. They have unique names but the ID is always 1.
I have tried the PacketClient, SampleClient and WinFormsSample, stepping through in the debugger and all appear to be receiving this non-unique ID for all rigid bodies. I did not take a look at the raw data itself though.
Any ideas what may be wrong? Is there a way of specifying the ID when defining the rigid body? Any thoughts on how to get this info from the NatNet library (preferably NatNetML)?
Sincere thanks,
Sean
Here is the output of a data packet from the PacketClient:
I have tried the PacketClient, SampleClient and WinFormsSample, stepping through in the debugger and all appear to be receiving this non-unique ID for all rigid bodies. I did not take a look at the raw data itself though.
Any ideas what may be wrong? Is there a way of specifying the ID when defining the rigid body? Any thoughts on how to get this info from the NatNet library (preferably NatNetML)?
Sincere thanks,
Sean
Here is the output of a data packet from the PacketClient:
Code: Select all
-------------
Begin Packet
-------
Message ID : 7
Byte count : 108
Frame # : 56627
Marker Set Count : 0
Unidentified Marker Count : 0
Rigid Body Count : 2
ID : 1
pos: [299.35,11.40,26.18]
ori: [-0.02,0.62,0.06,0.78]
Marker Count: 0
Mean marker error: 0.00
ID : 1
pos: [379.33,10.52,25.81]
ori: [-0.19,-0.04,0.98,0.03]
Marker Count: 0
Mean marker error: 0.00
Skeleton Count : 0
latency : 0
End Packet
-------------