From 7fcae5c1c7bdbab7329bf4c5f68529cdfd9e979b Mon Sep 17 00:00:00 2001 From: Patrick Roncagliolo Date: Wed, 11 Oct 2023 17:49:54 +0200 Subject: [PATCH] Mark subscription cb parameter const (#103) --- include/message_filters/subscriber.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/message_filters/subscriber.h b/include/message_filters/subscriber.h index cd3d644..719452e 100644 --- a/include/message_filters/subscriber.h +++ b/include/message_filters/subscriber.h @@ -307,7 +307,7 @@ class Subscriber qos_ = qos; options_ = options; sub_ = node->template create_subscription(topic, rclcpp_qos, - [this](std::shared_ptr msg) { + [this](const std::shared_ptr msg) { this->cb(EventType(msg)); }, options);