9
Language bindings
In this chapter are described the different bindings Atracsys makes available to the users.
The reference implementation is the distributed C / C++ API.
The other language bindings are not subject to torough test-
ing, as the C / C++ do.
9.1 Python wrapper
A Python™ wrapper is distributed, which has been tested with Python 3.7.2 (64 bits) on Windows and on
Linux. The C++ / Python interface framework used is
.
The wrapper allows to use
almost
all possibilities allowed by the fusionTrack C++ API, meaning that the
classes of the C++ API have just been wrapped in Python.
The Python wrapper is distributed through
. The wrapper needs Python (64 bits), git, CMake 3.10
or newer, and a C++11-compliant compiler (i.e. Microsoft Visual Studio 2015 or newer, gcc 5.0 or newer,
clang 3.8 or newer).
9.2 Matlab wrapper
A Matlab
®
wrapper is distributed, which has been tested with Matlab R2016a and Microsoft Visual Studio
2015 on Windows. It consists of a set of C++ source files, which are then compiled via Matlab using Visual
Studio, and Matlab scripts files. The Matlab main script, provided as an example, uses the
FusionTrack
class, which is fully documented, as well as the underlying
FusionTrack
class written in C++.
The wrapper allows to:
- detected connected device(s);
- get and set
int32
and
float32
options;
- get
ftkBuffer
options;
- register / clear geometries;
- get the latest frame, with
–
marker
data;
–
fiducial
data;
–
timestamp, counter;
–
image size.
65