This project provides minimal demo of Antilatency tracking. Structure:
- ./AntilatencySdk/Api contains headers for Antilatency libraries;
- ./AntilatencySdk/Bin// contains prebuilt libraries;
- ./TrackingMinimalDemoCpp.cpp contains code of example.
- Place project folder somewhere on the filesystem.
- Execute in terminal:
cd <full path to project directory>
mkdir build
cd build
cmake ../
make
- Directory ./build should now contain TrackingMinimalDemo executable and libraries.
- Open cmake-gui.
- Set path to project directory in "Where is the source code"
- Specify directory where you want to create project files in "Where to build the binaries"
- Click "Configure" button.
- Choose "generator"(e.g. Visual Studio).
- Click "Generate" button.
- Directory specified on step 3 should now contain project files depending on selected generator(TrackingMinimalDemo.sln for Visual Studio)
- Build it.
TrackingMinimalDemo executable expects environment code as first argument and placement code as second(both can be obtained from AntilatencyService by Share->copy link in environment/placement menu).
TrackingMinimalDemo.exe AntilatencyAltEnvironmentHorizontalGrid~AgZ5ZWxsb3cEBLhTiT_cRqA-r45jvZqZmT4AAAAAAAAAAACamRk_AQQAAQEBAwABAAADAQE AAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAA
./TrackingMinimalDemo AntilatencyAltEnvironmentHorizontalGrid~AgZ5ZWxsb3cEBLhTiT_cRqA-r45jvZqZmT4AAAAAAAAAAACamRk_AQQAAQEBAwABAAADAQE AAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAA
You may need to run TrackingMinimalDemo as root to work with USB devices (i.e. sudo ./TrackingMinimalDemo ...
) or add rule for Antilatency USB devices:
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="3237", MODE="0666", GROUP="<group_name>"' | sudo tee /etc/udev/rules.d/66-antilatency.rules
- where <group_name> is the name of the group to which the user who launches the application belongs. For example, on Raspberry Pi this commands looks like:
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="3237", MODE="0666", GROUP="pi"' | sudo tee /etc/udev/rules.d/66-antilatency.rules
You need to set search path and libs for oscpack. (https://note.com/prty/n/n4549edcef3e4)