-
- Downloads
ENH: Refactor VRPN Server/Client API
Allows for the following workflow : 1) Create a `VRPNDeviceClient` by specifying its URL (name@ipadress) and its type (see `DeviceType` class). The subclass `VRPNForceDevice` is setting the style to `PHANTOM_OMNI` by default for now. 2) Create a `VRPNDeviceServer` 3) Call `VRPNDeviceServer::addDeviceClient()` to add the client created on step 1). This will analyse the IP, name, and type of the device client to instantiate a VRPN device connection. The added devices are then stored in three `std:map` so the `mainloop()` can be called during the execution. Updated their use in `FEMSimulator` and `LaparoscopicCamera` examples.
Showing
- Devices/VRPNDeviceClient.cpp 27 additions, 2 deletionsDevices/VRPNDeviceClient.cpp
- Devices/VRPNDeviceClient.h 24 additions, 2 deletionsDevices/VRPNDeviceClient.h
- Devices/VRPNDeviceServer.cpp 119 additions, 48 deletionsDevices/VRPNDeviceServer.cpp
- Devices/VRPNDeviceServer.h 17 additions, 0 deletionsDevices/VRPNDeviceServer.h
- Devices/VRPNForceDevice.cpp 2 additions, 3 deletionsDevices/VRPNForceDevice.cpp
- Devices/VRPNForceDevice.h 1 addition, 1 deletionDevices/VRPNForceDevice.h
- Examples/FEMSimulator/main.cpp 11 additions, 7 deletionsExamples/FEMSimulator/main.cpp
- Examples/LaparoscopicCamera/main.cpp 28 additions, 29 deletionsExamples/LaparoscopicCamera/main.cpp
Loading
Please register or sign in to comment