Skip to content

Commit 796415e

Browse files
authored
remove redundant keep_last() (#166)
1 parent c3d1236 commit 796415e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

robot_calibration/src/finders/led_finder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ bool LedFinder::init(const std::string& name,
7171
topic_name = node->declare_parameter<std::string>(name + ".topic", name + "/points");
7272
subscriber_ = node->create_subscription<sensor_msgs::msg::PointCloud2>(
7373
topic_name,
74-
rclcpp::QoS(1).best_effort().keep_last(1),
74+
rclcpp::QoS(1).best_effort(),
7575
std::bind(&LedFinder::cameraCallback, this, std::placeholders::_1));
7676

7777
// Publish where LEDs were seen

robot_calibration/src/finders/plane_finder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bool PlaneFinder::init(const std::string& name,
108108
node->declare_parameter<std::string>(name + ".topic", name + "/points");
109109
subscriber_ = node->create_subscription<sensor_msgs::msg::PointCloud2>(
110110
topic_name,
111-
rclcpp::QoS(1).best_effort().keep_last(1),
111+
rclcpp::QoS(1).best_effort(),
112112
std::bind(&PlaneFinder::cameraCallback, this, std::placeholders::_1));
113113

114114
// Name of the sensor model that will be used during optimization

robot_calibration/src/finders/scan_finder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ bool ScanFinder::init(const std::string& name,
5353
topic_name = node->declare_parameter<std::string>(name + ".topic", name + "/scan");
5454
subscriber_ = node->create_subscription<sensor_msgs::msg::LaserScan>(
5555
topic_name,
56-
rclcpp::QoS(1).best_effort().keep_last(1),
56+
rclcpp::QoS(1).best_effort(),
5757
std::bind(&ScanFinder::scanCallback, this, std::placeholders::_1));
5858

5959
// Name of the sensor model that will be used during optimization

0 commit comments

Comments
 (0)