We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8265f93 commit 5e45715Copy full SHA for 5e45715
sensing/pointcloud_preprocessor/src/filter.cpp
@@ -89,8 +89,11 @@ pointcloud_preprocessor::Filter::Filter(
89
90
// Set publisher
91
{
92
+ rclcpp::PublisherOptions pub_options;
93
+ pub_options.qos_overriding_options = rclcpp::QosOverridingOptions::with_default_policies();
94
+
95
pub_output_ = this->create_publisher<PointCloud2>(
- "output", rclcpp::SensorDataQoS().keep_last(max_queue_size_));
96
+ "output", rclcpp::SensorDataQoS().keep_last(max_queue_size_), pub_options);
97
}
98
99
subscribe(filter_name);
0 commit comments