From f0424d55458f99e3c75303b471815a0b15164f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Wed, 14 Feb 2024 16:05:27 +0100 Subject: [PATCH] Remove infinite recursion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- point_cloud_transport/src/publisher_plugin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/point_cloud_transport/src/publisher_plugin.cpp b/point_cloud_transport/src/publisher_plugin.cpp index d782c3d..c69280d 100644 --- a/point_cloud_transport/src/publisher_plugin.cpp +++ b/point_cloud_transport/src/publisher_plugin.cpp @@ -38,10 +38,12 @@ namespace point_cloud_transport { -PublisherPlugin::EncodeResult PublisherPlugin::encode(const sensor_msgs::msg::PointCloud2 & raw) +PublisherPlugin::EncodeResult PublisherPlugin::encode(const sensor_msgs::msg::PointCloud2 & /*raw*/) const { - return this->encode(raw); + // TODO(ahcorde): Review this, infinite recursion + // return this->encode(raw); + return std::nullopt; } void PublisherPlugin::advertise(