NatNet 2.2 with TrackingTools 2.2.0 beta 1
Posted: Thu May 06, 2010 10:24 am
Hi,
I've developed a couple of applications that make use of the NAT_REQUEST_FRAMEOFDATA message. I know this isn't how streaming was intended but for the moment because I'm running a real-time operating system that executes code at a specific interval, this is the easiest way to pipe data into my application. I have applications that use both a packet client as well as using the NatNet 2.2 static library. Using the included SimpleServer application I tested my two clients and everything works, I'm able to retrieve data from the server by sending the NAT_REQUEST_FRAMEOFDATA command. When I try the exact same clients using the TrackingTools 2.2.0 beta 1 application I don't retrieve any info. I know it's not an issue with my clients now working when data is actually being streamed because I've turned streaming on with the SimpleServer and my clients still worked. I modified the SampleClient and PacketClient so that they don't display any data that is streamed, only data that is requested (i.e. only stuff that comes through the command port). I get the following results:
SampleClient:
Client initialized and ready.
[SampleClient] Sending Test Request
[SampleClient] Requesting Data Descriptions...[SampleClient] Received 1 Data Descriptions:
Data Description # 0 (type=1)
RigidBody Name : Trackable 1
RigidBody ID : 1
RigidBody Parent ID : -1
Parent Offset : 0.00,0.00,0.00
Client is connected to server and listening for data...
Most Recent Frame: 0Rigid Bodies [Count=0]
Most Recent Frame: 0Rigid Bodies [Count=0]
PacketClient:
[Client] received 'unrecognized request'
[Client] received 'unrecognized request'
So my question is, does the TrackTools server recognize the NAT_REQUEST_FRAMEOFDATA? In the PacketClient I'm receiving a message from the server with id=NAT_UNRECOGNIZED_REQUEST.
I'd really appreciate your feedback, thanks.
I've developed a couple of applications that make use of the NAT_REQUEST_FRAMEOFDATA message. I know this isn't how streaming was intended but for the moment because I'm running a real-time operating system that executes code at a specific interval, this is the easiest way to pipe data into my application. I have applications that use both a packet client as well as using the NatNet 2.2 static library. Using the included SimpleServer application I tested my two clients and everything works, I'm able to retrieve data from the server by sending the NAT_REQUEST_FRAMEOFDATA command. When I try the exact same clients using the TrackingTools 2.2.0 beta 1 application I don't retrieve any info. I know it's not an issue with my clients now working when data is actually being streamed because I've turned streaming on with the SimpleServer and my clients still worked. I modified the SampleClient and PacketClient so that they don't display any data that is streamed, only data that is requested (i.e. only stuff that comes through the command port). I get the following results:
SampleClient:
Client initialized and ready.
[SampleClient] Sending Test Request
[SampleClient] Requesting Data Descriptions...[SampleClient] Received 1 Data Descriptions:
Data Description # 0 (type=1)
RigidBody Name : Trackable 1
RigidBody ID : 1
RigidBody Parent ID : -1
Parent Offset : 0.00,0.00,0.00
Client is connected to server and listening for data...
Most Recent Frame: 0Rigid Bodies [Count=0]
Most Recent Frame: 0Rigid Bodies [Count=0]
PacketClient:
[Client] received 'unrecognized request'
[Client] received 'unrecognized request'
So my question is, does the TrackTools server recognize the NAT_REQUEST_FRAMEOFDATA? In the PacketClient I'm receiving a message from the server with id=NAT_UNRECOGNIZED_REQUEST.
I'd really appreciate your feedback, thanks.