Skip to content

Commit 07a6b90

Browse files
committed
modify: fix qos setting
Signed-off-by: TetsuKawa <kawaguchitnon@icloud.com>
1 parent 0eaad5e commit 07a6b90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/leader_election_converter/src/common/converter/availability_converter.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void AvailabilityConverter::setUdpSender(const std::string & dest_ip, const std:
3333

3434
void AvailabilityConverter::setSubscriber()
3535
{
36-
const auto qos = rclcpp::QoS(1).transient_local();
36+
const auto qos = rclcpp::QoS(1);
3737
availability_callback_group_ =
3838
node_->create_callback_group(rclcpp::CallbackGroupType::MutuallyExclusive);
3939
rclcpp::SubscriptionOptions availability_options = rclcpp::SubscriptionOptions();
@@ -75,7 +75,7 @@ void AvailabilityConverter::convertToUdp(
7575
availability.pull_over = availability_msg->pull_over;
7676
udp_availability_sender_->send(availability);
7777
} else {
78-
RCLCPP_ERROR(node_->get_logger(), "Failed to take control mode report");
78+
RCLCPP_ERROR_THROTTLE(node_->get_logger(), *node->get_clock(), 5000, "Failed to take control mode report");
7979
}
8080
}
8181

0 commit comments

Comments
 (0)