From 911291f8d32da8a9a70f69adc7bcf1e41477e017 Mon Sep 17 00:00:00 2001 From: Miaofei Mei Date: Fri, 17 Apr 2020 12:56:26 -0700 Subject: [PATCH] remove warning message from failing to register default callback (#1067) Signed-off-by: Miaofei --- rclcpp/include/rclcpp/publisher.hpp | 6 +----- rclcpp/include/rclcpp/subscription.hpp | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/rclcpp/include/rclcpp/publisher.hpp b/rclcpp/include/rclcpp/publisher.hpp index e62f216c8c..aa614e3a0c 100644 --- a/rclcpp/include/rclcpp/publisher.hpp +++ b/rclcpp/include/rclcpp/publisher.hpp @@ -97,11 +97,7 @@ class Publisher : public PublisherBase }, RCL_PUBLISHER_OFFERED_INCOMPATIBLE_QOS); } catch (UnsupportedEventTypeException & /*exc*/) { - RCLCPP_WARN_ONCE( - rclcpp::get_logger(rcl_node_get_logger_name(rcl_node_handle_.get())), - "This rmw implementation does not support ON_OFFERED_INCOMPATIBLE_QOS " - "events, you will not be notified when Publishers offer an incompatible " - "QoS profile to Subscriptions on the same topic."); + // pass } } // Setup continues in the post construction method, post_init_setup(). diff --git a/rclcpp/include/rclcpp/subscription.hpp b/rclcpp/include/rclcpp/subscription.hpp index 4e602b2fb5..2b5172dc1b 100644 --- a/rclcpp/include/rclcpp/subscription.hpp +++ b/rclcpp/include/rclcpp/subscription.hpp @@ -132,11 +132,7 @@ class Subscription : public SubscriptionBase }, RCL_SUBSCRIPTION_REQUESTED_INCOMPATIBLE_QOS); } catch (UnsupportedEventTypeException & /*exc*/) { - RCLCPP_WARN_ONCE( - rclcpp::get_logger(rcl_node_get_logger_name(node_handle_.get())), - "This rmw implementation does not support ON_REQUESTED_INCOMPATIBLE_QOS " - "events, you will not be notified when Subscriptions request an incompatible " - "QoS profile from Publishers on the same topic."); + // pass } }