diff --git a/src/scan_to_cloud_filter_chain.cpp b/src/scan_to_cloud_filter_chain.cpp index 859f7758..9ff360d2 100644 --- a/src/scan_to_cloud_filter_chain.cpp +++ b/src/scan_to_cloud_filter_chain.cpp @@ -45,7 +45,7 @@ ScanToCloudFilterChain::ScanToCloudFilterChain( diagnostic_updater_(this), laser_max_range_(DBL_MAX), buffer_(this->get_clock()), - tf_(buffer_), + tf_(buffer_, this), filter_(scan_sub_, buffer_, "", 50, *this), cloud_filter_chain_("sensor_msgs::msg::PointCloud2"), scan_filter_chain_("sensor_msgs::msg::LaserScan") diff --git a/src/scan_to_scan_filter_chain.cpp b/src/scan_to_scan_filter_chain.cpp index 98743316..53ec5dbb 100644 --- a/src/scan_to_scan_filter_chain.cpp +++ b/src/scan_to_scan_filter_chain.cpp @@ -71,7 +71,7 @@ ScanToScanFilterChain::ScanToScanFilterChain( this->get_parameter("scan_filtered_history_depth", scan_filtered_history_depth_); if (!tf_message_filter_target_frame_.empty()) { - tf_.reset(new tf2_ros::TransformListener(buffer_)); + tf_.reset(new tf2_ros::TransformListener(buffer_, this)); tf_filter_.reset( new tf2_ros::MessageFilter( scan_sub_, buffer_, "",