Skip to content

Commit

Permalink
Delete Goaltopic_callback function
Browse files Browse the repository at this point in the history
Goaltopicトピックが他のノードからも出ていたためGoaltopic_callbackを削除
  • Loading branch information
suke-toudara authored Aug 22, 2024
1 parent a2681f9 commit 271f4ca
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/vrx_bridge_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<geometry_msgs::msg::PoseStamped>(
"/vrx/stationkeeping/goal", 1,
std::bind(&VRXBridgeComponent::Goaltopic_callback, this, std::placeholders::_1));
// goal_sub_ = this->create_subscription<geometry_msgs::msg::PoseStamped>(
// "/vrx/stationkeeping/goal", 1,
// std::bind(&VRXBridgeComponent::Goaltopic_callback, this, std::placeholders::_1));

gps_pub_ =
this->create_publisher<geographic_msgs::msg::GeoPoseStamped>("/localization/geopose", 1);
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 271f4ca

Please sign in to comment.