Skip to content

Commit

Permalink
Change references from RGBDSensorWrapper to rgbdSensor_nws_yarp
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Nov 22, 2024
1 parent 723a457 commit 1d28c6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/depthCamera/src/DepthCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void GazeboYarpDepthCamera::Load(sensors::SensorPtr _sensor, sdf::ElementPtr _sd

#ifndef GAZEBO_YARP_PLUGINS_DISABLE_IMPLICIT_NETWORK_WRAPPERS
::yarp::dev::Drivers::factory().add(new ::yarp::dev::DriverCreatorOf< ::yarp::dev::GazeboYarpDepthCameraDriver>
("gazebo_depthCamera", "RGBDSensorWrapper", "GazeboYarpDepthCameraDriver"));
("gazebo_depthCamera", "rgbdSensor_nws_yarp", "GazeboYarpDepthCameraDriver"));
#else
::yarp::dev::Drivers::factory().add(new ::yarp::dev::DriverCreatorOf< ::yarp::dev::GazeboYarpDepthCameraDriver>
("gazebo_depthCamera", "", "GazeboYarpDepthCameraDriver"));
Expand Down Expand Up @@ -98,11 +98,11 @@ void GazeboYarpDepthCamera::Load(sensors::SensorPtr _sensor, sdf::ElementPtr _sd
if (!disable_wrapper)
{
///////////////////////////
//Open the wrapper, forcing it to be a "RGBDSensorWrapper"
wrapper_properties.put("device","RGBDSensorWrapper");
//Open the wrapper, forcing it to be a "rgbdSensor_nws_yarp"
wrapper_properties.put("device","rgbdSensor_nws_yarp");
if(wrapper_properties.check("subdevice"))
{
yCError(GAZEBODEPTH) << "RGBDSensorWrapper: Do not use 'subdevice' keyword here since the only supported subdevice is <gazebo_depthCamera>. \
yCError(GAZEBODEPTH) << "GazeboYarpDepthCamera: Do not use 'subdevice' keyword here since the only supported subdevice is <gazebo_depthCamera>. \
Please remove the line 'subdevice " << wrapper_properties.find("subdevice").asString().c_str() << "' from your config file before proceeding";
return;
}
Expand Down

0 comments on commit 1d28c6a

Please sign in to comment.