This repo contains all my work that I did related to the GSOC project.
- MacOS
$ brew install vrpn
To run the example
$ g++ test.cpp -lvrpn -lpthread
$ ./a.out
- Linux
Download VRPN source (version 7.33):
wget https://github.com/vrpn/vrpn/releases/download/v07.33/vrpn_07_33.zip
Extract source archive:
unzip vrpn_07_33.zip
We don't need the archive anymore. So let's delete it:
rm -f vrpn_07_33.zip
Change to source directory:
cd vrpn
Create a build directory and go into it:
mkdir build && cd build
Generate build environment using cmake
:
cmake ..
Build project:
make
Install VRPN:
sudo make install
Receiver
<ServerCommunicationVRPN name="vrpn1" job="receiver" address="localhost"/>
<CommunicationSubscriber name="sub1" communication="@vrpn1" subject="testing" target="@light1" datas="cutoff"/>
Sender
<ServerCommunicationVRPN name="vrpn1" job="sender" address="localhost"/>
<CommunicationSubscriber name="sub1" communication="@vrpn1" subject="testing" target="@light1" datas="cutoff"/>