Skip to content

Commit

Permalink
modify: fix qos setting
Browse files Browse the repository at this point in the history
Signed-off-by: TetsuKawa <kawaguchitnon@icloud.com>
  • Loading branch information
TetsuKawa committed Jul 1, 2024
1 parent 0eaad5e commit 07a6b90
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void AvailabilityConverter::setUdpSender(const std::string & dest_ip, const std:

void AvailabilityConverter::setSubscriber()
{
const auto qos = rclcpp::QoS(1).transient_local();
const auto qos = rclcpp::QoS(1);
availability_callback_group_ =
node_->create_callback_group(rclcpp::CallbackGroupType::MutuallyExclusive);
rclcpp::SubscriptionOptions availability_options = rclcpp::SubscriptionOptions();
Expand Down Expand Up @@ -75,7 +75,7 @@ void AvailabilityConverter::convertToUdp(
availability.pull_over = availability_msg->pull_over;
udp_availability_sender_->send(availability);
} else {
RCLCPP_ERROR(node_->get_logger(), "Failed to take control mode report");
RCLCPP_ERROR_THROTTLE(node_->get_logger(), *node->get_clock(), 5000, "Failed to take control mode report");
}
}

Expand Down

0 comments on commit 07a6b90

Please sign in to comment.