From cede95a747287c4fc2e53da1d3380afc464a57b4 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 22 Dec 2021 16:42:09 +0100 Subject: [PATCH] Fix compilation of GazeboYarpLaserSensorDriver with YARP 3.6 (#599) --- CHANGELOG.md | 3 +++ plugins/lasersensor/include/yarp/dev/LaserSensorDriver.h | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e037f73f..d701be491 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ The format of this document is based on [Keep a Changelog](https://keepachangelo - The `gazebo_imu` plugin now handle the `yarpDeviceName` parameter (https://github.com/robotology/gazebo-yarp-plugins/pull/583). - The `gazebo_imu` plugin can be now opened without implicit wrapper, by using the `GAZEBO_YARP_PLUGINS_DISABLE_IMPLICIT_NETWORK_WRAPPERS` CMake option (https://github.com/robotology/gazebo-yarp-plugins/pull/583). +### Fixed +- Fixed compilation with YARP 3.6 (https://github.com/robotology/gazebo-yarp-plugins/pull/599). + ## [4.0.0] - 2021-09-03 ### Added diff --git a/plugins/lasersensor/include/yarp/dev/LaserSensorDriver.h b/plugins/lasersensor/include/yarp/dev/LaserSensorDriver.h index 8daabbf27..1efaca21d 100644 --- a/plugins/lasersensor/include/yarp/dev/LaserSensorDriver.h +++ b/plugins/lasersensor/include/yarp/dev/LaserSensorDriver.h @@ -65,7 +65,9 @@ class yarp::dev::GazeboYarpLaserSensorDriver: virtual bool setScanRate (double rate) override; //PRECISELY TIMED - virtual yarp::os::Stamp getLastInputStamp() override; + // TODO(traversaro): Remove once we require YARP 3.6 + // See https://github.com/robotology/gazebo-yarp-plugins/issues/598 + virtual yarp::os::Stamp getLastInputStamp(); public: //Lidar2DDeviceBase