t_
is tag version selection, [SDK version]
is Antilatency SDK version, [VRPN version]
is VRPN version: git clone --depth 1 --recurse-submodules -b t_antilatency-integration_[SDK version]_[VRPN version] https://github.com/antilatency/vrpn.git
git clone --depth 1 --recurse-submodules -b t_antilatency-integration_4.0.0_v07.35 https://github.com/antilatency/vrpn.git
vrpn
folder. Name it build
, for instance. After that open the cmd
window in this folder and run the cmake ..
command.[project path]\VRPN.sln
file in Visual Studio.vrpn_server
project which is located in the Main Server
tab. Before you build it, choose one of the build configurations: Debug or Release. To build a project, right-click on it and select the Build
option. It will look as follows:[project path]\server_src\
folder. Then, in the vrpn.cfg
file, uncomment the following line (remove a #
sign):#vrpn_alt_tracker Device0 <-env [environment code]> [tag <-p [placement code]>] <more tags...> <options>
-lp
option does not work anymore, since libraries are already linked to the Antilatency SDK submodule.http://www.antilatency.com/antilatencyservice/environment?data=AAVSaWdpZBcABnllbGxvdwQEBAABAQMBAQEDAAEAAD_W&name=DevKit
data=
and &name
is the code for this Environment.vrpn_alt_tracker Device0
Tag
property in AntilatencyService, corresponding to what you wrote in vrpn.cfg
.Tag
property should be set to Device0
.[project path]\server_src\Debug\
or [project path]\server_src\Release\
folder, depending on your build configuration. Start a server via the command line, specifying the path to the vrpn.cfg
file:vrpn_server.exe -f ../vrpn.cfg
[project path]\VRPN.sln
file in Visual Studio, if it is not open already.vrpn_print_devices
project located in the Clients
tab. To do this, right-click on the project name and select the Build
option.vrpn_print_devices.exe
file, which is located here:[project path]\client_src\Debug(or Release)\
vrpn_print_devices.exe
file from the command line, specifying the tracker tag and the server address using the following template:vrpn_print_devices.exe -trackerstride 10 [TrackerTag]@localhost
vrpn_print_devices.exe -trackerstride 10 Device0@localhost
,-trackerstride
is data output frequency; in this case, 1 out of 10 results will be displayed.pos
— the position data of the object;quat
— the quaternion data.