diff --git a/src/common/wheel_stuck_utils/include/wheel_stuck_utils/ros/no_callback_subscription.hpp b/src/common/wheel_stuck_utils/include/wheel_stuck_utils/ros/no_callback_subscription.hpp index 19e0c43..ede7c41 100644 --- a/src/common/wheel_stuck_utils/include/wheel_stuck_utils/ros/no_callback_subscription.hpp +++ b/src/common/wheel_stuck_utils/include/wheel_stuck_utils/ros/no_callback_subscription.hpp @@ -37,7 +37,7 @@ class NoCallbackSubscription noexec_subscription_options); } - typename TMessage::ConstSharedPtr getData() + typename TMessage::ConstSharedPtr get_data() { auto data = std::make_shared(); rclcpp::MessageInfo message_info; diff --git a/src/planning/dwa_planner/src/dwa_planner.cpp b/src/planning/dwa_planner/src/dwa_planner.cpp index 6070a1b..21dec67 100644 --- a/src/planning/dwa_planner/src/dwa_planner.cpp +++ b/src/planning/dwa_planner/src/dwa_planner.cpp @@ -151,7 +151,7 @@ bool DWAPlanner::subscribe_and_validate() bool DWAPlanner::try_subscribe_map() { - auto map_msg = map_sub_->getData(); + auto map_msg = map_sub_->get_data(); if (!map_msg) return false; map_ = map_msg; return true; @@ -159,7 +159,7 @@ bool DWAPlanner::try_subscribe_map() bool DWAPlanner::try_subscribe_odom() { - auto odom_msg = odom_sub_->getData(); + auto odom_msg = odom_sub_->get_data(); if (!odom_msg) return false; odom_ = odom_msg; return true; @@ -167,7 +167,7 @@ bool DWAPlanner::try_subscribe_odom() bool DWAPlanner::try_subscribe_goal() { - auto goal_msg = goal_sub_->getData(); + auto goal_msg = goal_sub_->get_data(); if (!goal_msg) return false; goal_ = goal_msg; return true; diff --git a/src/sample/simple_int_subscriber/src/polling_int_subscriber.cpp b/src/sample/simple_int_subscriber/src/polling_int_subscriber.cpp index 26e9bf2..6ab4a23 100644 --- a/src/sample/simple_int_subscriber/src/polling_int_subscriber.cpp +++ b/src/sample/simple_int_subscriber/src/polling_int_subscriber.cpp @@ -30,7 +30,7 @@ PollingIntSubscriber::PollingIntSubscriber(const rclcpp::NodeOptions & options) void PollingIntSubscriber::update() { - const auto msg = sub_->getData(); + const auto msg = sub_->get_data(); if (msg) { std::cout << "Received: '" << msg->data << "'" << std::endl; } else {