Skip to content

Commit

Permalink
Merge branch 'yarp-3.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
robotology-bot committed Nov 26, 2024
2 parents dde7dcb + 9cd76e8 commit 435e8c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions example/dev/RGBD/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ In this example we will use a fake device, for testing purposes: the `fakeDepthC

```
Terminal 1: yarpserver
Terminal 2: yarpdev --device RGBDSensorWrapper --name /server --subdevice fakeDepthCamera --mode ball
Terminal 2: yarpdev --device rgbdSensor_nws_yarp --name /server --subdevice fakeDepthCamera --mode ball
```
The parameters here means:
- device: The server we want to open
Expand Down Expand Up @@ -84,14 +84,14 @@ The general procedure for instantiating devices does not change when using serve
#### Server side:
The server side application will still open the device driver, but now it will also open the corresponding YARP server used to broadcast data over the network and reply to Remote Procedure Calls (RPC).
This way of using a device driver is shown in file [`RGBD_test_1b_server.cpp`](RGBD_test_1b_server.cpp), the server class is called `RGBDSensorWrapper`:
This way of using a device driver is shown in file [`RGBD_test_1b_server.cpp`](RGBD_test_1b_server.cpp), the server class is called `rgbdSensor_nws_yarp`:
``` c++
PolyDriver wrapperDriver;
Property wrapperConfig;
// Wrapper config
wrapperConfig.put("device", "RGBDSensorWrapper"); // Network server broadcasting data through network
wrapperConfig.put("device", "rgbdSensor_nws_yarp"); // Network server broadcasting data through network
wrapperConfig.put("name", "/server"); // Prefix for port names opened by the YARP server
// Instantiating RGBD server
Expand Down
2 changes: 1 addition & 1 deletion example/dev/RGBD/RGBD_test_1b_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main(int argc, char* argv[])
// Keyword 'device' is used by YARP framework

// Wrapper config
wrapperConfig.put("device", "RGBDSensorWrapper"); // Network server broadcasting data through YARP network
wrapperConfig.put("device", "rgbdSensor_nws_yarp"); // Network server broadcasting data through YARP network
wrapperConfig.put("name", "/server"); // Prefix for port names opened by the YARP server

// Device driver config
Expand Down
4 changes: 2 additions & 2 deletions src/devices/openNI2DepthCamera/depthCameraDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class streamFrameListener;
*
* See the documentation for more details about each interface.
*
* This device is paired with its server called RGBDSensorWrapper to stream the images and perform remote operations.
* This device is paired with its server called rgbdSensor_nws_yarp to stream the images and perform remote operations.
*
* The config file is subdivided into 5 major sections called "SETTINGS", "HW_DESCRIPTION", "RGB_INTRINSIC_PARAMETERS",
* "DEPTH_INTRINSIC_PARAMETERS", "EXTRINSIC_PARAMETERS".
Expand Down Expand Up @@ -125,7 +125,7 @@ class streamFrameListener;
*
* \code{.unparsed}
device RGBDSensorWrapper
device rgbdSensor_nws_yarp
subdevice depthCamera
name /depthCamera
Expand Down

0 comments on commit 435e8c6

Please sign in to comment.