This is a NatNet client library written in Python, supporting protocol version 3.0.1 (Motive version 2.0). Not tested with protocol 3.1.0 (Motive 2.1), and there are some minor changes in the protocol which might break it.
Features:
- Supports rigid bodies and markers
- Synchronizes clocks with the server to calculate correct frame timestamps
- Server autodiscovery
- Free software: BSD 3-Clause License
See also:
- mje-nz/natnet_ros, a ROS driver based on this library.
- mje-nz/natnet-sdk-mirror, a versioned mirror of NaturalPoint's NatNet SDK.
https://python-natnet.readthedocs.io/
For now, use:
python setup.py install
to build and install the package, or:
python setup.py develop
to install in "development mode" i.e. to install symlinks.
Install Python 2.7 and 3.6, git, and pip3 install tox. On Windows you'll have to manually git to your PATH, and it's probably best to add at least one Python (tox will use the "py" launcher to find your installed Pythons, but if you want to be able to run "python27", "pip3" etc on the command line you'll have to set that up yourself). On Windows, Gow makes the command line a bit less painful.
To run the checks and tests run:
tox
To run the most important checks and tests automatically before you commit, run:
ln -s $(pwd)/pre-commit-hook .git/hooks/pre-commit