Skip to content

Commit 313bb86

Browse files
authored
perf(autoware_ar_tag_based_localizer): remove unnecessary pub/sub depth for transient_local (autowarefoundation#8259)
1 parent 99e170f commit 313bb86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

localization/autoware_landmark_based_localizer/autoware_ar_tag_based_localizer/src/ar_tag_based_localizer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ ArTagBasedLocalizer::ArTagBasedLocalizer(const rclcpp::NodeOptions & options)
116116
*/
117117
using std::placeholders::_1;
118118
map_bin_sub_ = this->create_subscription<LaneletMapBin>(
119-
"~/input/lanelet2_map", rclcpp::QoS(10).durability(rclcpp::DurabilityPolicy::TransientLocal),
119+
"~/input/lanelet2_map", rclcpp::QoS(1).durability(rclcpp::DurabilityPolicy::TransientLocal),
120120
std::bind(&ArTagBasedLocalizer::map_bin_callback, this, _1));
121121

122122
rclcpp::QoS qos_sub(rclcpp::QoSInitialization::from_rmw(rmw_qos_profile_default));
@@ -131,7 +131,7 @@ ArTagBasedLocalizer::ArTagBasedLocalizer(const rclcpp::NodeOptions & options)
131131
/*
132132
Publishers
133133
*/
134-
const rclcpp::QoS qos_pub_once = rclcpp::QoS(rclcpp::KeepLast(10)).transient_local().reliable();
134+
const rclcpp::QoS qos_pub_once = rclcpp::QoS(rclcpp::KeepLast(1)).transient_local().reliable();
135135
const rclcpp::QoS qos_pub_periodic(rclcpp::QoSInitialization::from_rmw(rmw_qos_profile_default));
136136
pose_pub_ = this->create_publisher<PoseWithCovarianceStamped>(
137137
"~/output/pose_with_covariance", qos_pub_periodic);

0 commit comments

Comments
 (0)