Skip to content

Commit

Permalink
feat(pointcloud_preprocessor): runtime configurable output topic qos
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Głowacki <[email protected]>
  • Loading branch information
ralwing committed May 22, 2024
1 parent 8265f93 commit 5e45715
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sensing/pointcloud_preprocessor/src/filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ pointcloud_preprocessor::Filter::Filter(

// Set publisher
{
rclcpp::PublisherOptions pub_options;
pub_options.qos_overriding_options = rclcpp::QosOverridingOptions::with_default_policies();

pub_output_ = this->create_publisher<PointCloud2>(
"output", rclcpp::SensorDataQoS().keep_last(max_queue_size_));
"output", rclcpp::SensorDataQoS().keep_last(max_queue_size_), pub_options);
}

subscribe(filter_name);
Expand Down

0 comments on commit 5e45715

Please sign in to comment.