From cd39fc29da4c0ca4220fee5eb904ec64d531e6df Mon Sep 17 00:00:00 2001 From: Henning Kayser Date: Thu, 21 Apr 2022 18:25:59 +0200 Subject: [PATCH] Disable separate TransformListener thread in OccupancyMapServer (#1130) --- moveit_ros/occupancy_map_monitor/src/occupancy_map_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moveit_ros/occupancy_map_monitor/src/occupancy_map_server.cpp b/moveit_ros/occupancy_map_monitor/src/occupancy_map_server.cpp index 63a739f1b2..96ad126612 100644 --- a/moveit_ros/occupancy_map_monitor/src/occupancy_map_server.cpp +++ b/moveit_ros/occupancy_map_monitor/src/occupancy_map_server.cpp @@ -79,7 +79,7 @@ int main(int argc, char** argv) node->create_publisher("octomap_binary", RMW_QOS_POLICY_HISTORY_KEEP_LAST); auto clock_ptr = std::make_shared(RCL_ROS_TIME); std::shared_ptr buffer = std::make_shared(clock_ptr, tf2::durationFromSec(5.0)); - std::shared_ptr listener = std::make_shared(*buffer, node); + tf2_ros::TransformListener listener(*buffer, node, false /* spin_thread - disables executor */); occupancy_map_monitor::OccupancyMapMonitor server(node, buffer); server.setUpdateCallback(std::bind(&publishOctomap, octree_binary_pub, &server)); server.startMonitor();