From 271f4ca40f4da0b2f25bbef7c57bc29d58073cda Mon Sep 17 00:00:00 2001 From: keisuke yoshida <82552894+suke-toudara@users.noreply.github.com> Date: Thu, 22 Aug 2024 21:06:42 +0900 Subject: [PATCH] Delete Goaltopic_callback function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Goaltopicトピックが他のノードからも出ていたためGoaltopic_callbackを削除 --- src/vrx_bridge_component.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/vrx_bridge_component.cpp b/src/vrx_bridge_component.cpp index c6fad22..3f5f72c 100644 --- a/src/vrx_bridge_component.cpp +++ b/src/vrx_bridge_component.cpp @@ -27,9 +27,9 @@ VRXBridgeComponent::VRXBridgeComponent(const rclcpp::NodeOptions & options) "/wamv/sensors/imu/imu/data", 1, std::bind(&VRXBridgeComponent::Imutopic_callback, this, std::placeholders::_1)); - goal_sub_ = this->create_subscription( - "/vrx/stationkeeping/goal", 1, - std::bind(&VRXBridgeComponent::Goaltopic_callback, this, std::placeholders::_1)); + // goal_sub_ = this->create_subscription( + // "/vrx/stationkeeping/goal", 1, + // std::bind(&VRXBridgeComponent::Goaltopic_callback, this, std::placeholders::_1)); gps_pub_ = this->create_publisher("/localization/geopose", 1); @@ -57,13 +57,13 @@ void VRXBridgeComponent::Imutopic_callback(const sensor_msgs::msg::Imu::SharedPt imu_pub_->publish(imu); } -void VRXBridgeComponent::Goaltopic_callback(const geometry_msgs::msg::PoseStamped::SharedPtr msg) -{ - geometry_msgs::msg::PoseStamped goal; - goal.header = msg->header; - goal.pose = msg->pose; - goal_pub_->publish(goal); -} +// void VRXBridgeComponent::Goaltopic_callback(const geometry_msgs::msg::PoseStamped::SharedPtr msg) +// { +// geometry_msgs::msg::PoseStamped goal; +// goal.header = msg->header; +// goal.pose = msg->pose; +// goal_pub_->publish(goal); +// } } // namespace vrx_bridge