This repository contains the NatNet SDK to receive data from an OptiTrack Motion Capture system. The SDK can be found at https://optitrack.com/products/natnet-sdk/.
This code contains two versions:
-
The direct depacketization method, which is fully open-source. The PacketClient helper was taken from this SDK (version 4.1.0, Windows). The portions of the SDK that have been used and are part of this repository are licensed under Apache License, Version 2.0. The remaining code is licensed under MIT. This uses boost asio for communication.
-
The official SDK, in its binary distribution.
include
: Official include files from NaturalPointsamples
: Official samples (PacketClient from the Windows version of the SDK) and SampleClient from the Linux versionsrc
: The actual source code of the crossplatform port, based on the depacketization method.
Tested on Ubuntu 20.04
mkdir build
cd build
cmake ..
make
Test the open-source version:
./packetClient <IP-where-motive-is-running>
Test the closed-source version:
./sampleClient
or
./minimalClient
There are two communication channels:
- Command (to send commands over UDP)
- Data (UDP multicast receiver)
This assumes the following default settings:
- multicast address: 239.255.42.99
- command port: 1510
- data port: 1511