SampleClientML.cs

The following sample console application will be included in NatNet SDK 1.11.

<source lang="cs"> //============================================================================= // Copyright © 2016 NaturalPoint, Inc. All Rights Reserved. // // This software is provided by the copyright holders and contributors "as is" and // any express or implied warranties, including, but not limited to, the implied // warranties of merchantability and fitness for a particular purpose are disclaimed. // In no event shall NaturalPoint, Inc. or contributors be liable for any direct, // indirect, incidental, special, exemplary, or consequential damages // (including, but not limited to, procurement of substitute goods or services; // loss of use, data, or profits; or business interruption) however caused // and on any theory of liability, whether in contract, strict liability, // or tort (including negligence or otherwise) arising in any way out of // the use of this software, even if advised of the possibility of such damage. //=============================================================================

using System; using System.Collections; using System.Collections.Generic;

using NatNetML;

/* SampleClientML.cs

* 
* This program is a sample console application which uses the managed NatNet assembly (NatNetML.dll) for receiving NatNet data
* from a tracking server (e.g. Motive) and outputting them in every 200 mocap frames. This is provided mainly for demonstration purposes,
* and thus, the program is designed at its simpliest approach. The program connects to a server application at a localhost IP address
* (127.0.0.1) using Multicast connection protocol.
*  
* You may integrate this program into your applications if needed. This program is not designed to take account for latency/frame build up
* when tracking a high number of assets. For more robust and comprehensive use of the NatNet assembly, refer to the provided WinFormSample project.
* 
*  Note: The NatNet .NET assembly is derived from the native NatNetLib.dll library, so make sure the NatNetLib.dll is linked to your application
*        along with the NatNetML.dll file.  
* 
*  List of Output Data:
*  ====================
*      - Markers Data : Prints out total number of markers reconstructed in the scene.
*      - Rigid Body Data : Prints out position and orientation data
*      - Skeleton Data : Prints out only the position of the hip segment
*      - Force Plate Data : Prints out only the first subsample data per each mocap frame
* 
*/

namespace SampleClientML {

} // End. NatNetML Namespace

Last updated

Was this helpful?