diff --git a/common/autoware_node/include/autoware/node/node.hpp b/common/autoware_node/include/autoware/node/node.hpp index 760c6a42..184fdd6a 100644 --- a/common/autoware_node/include/autoware/node/node.hpp +++ b/common/autoware_node/include/autoware/node/node.hpp @@ -56,7 +56,7 @@ class Node : public rclcpp_lifecycle::LifecycleNode std::shared_ptr create_monitored_subscription( const std::string & topic_name, const float hz, const rclcpp::QoS & qos, CallbackT && callback, const rclcpp::SubscriptionOptions & options = rclcpp::SubscriptionOptions(), - typename MessageMemoryStrategyT::SharedPtr msg_mem_strat = + typename MessageMemoryStrategyT::SharedPtr msg_mem_strategy = (MessageMemoryStrategyT::create_default())) { // create proper qos based on input parameter @@ -100,7 +100,7 @@ class Node : public rclcpp_lifecycle::LifecycleNode }; return create_subscription( - topic_name, qos_profile, std::forward(callback), sub_options, msg_mem_strat); + topic_name, qos_profile, std::forward(callback), sub_options, msg_mem_strategy); } rclcpp::CallbackGroup::SharedPtr callback_group_mut_ex_;