From eae2ec107b4c3ff8d8eb5bba318a616a86d32158 Mon Sep 17 00:00:00 2001 From: Tomoya Kimura Date: Thu, 8 Jun 2023 17:34:31 +0900 Subject: [PATCH] fix(compare_map_segmentation): initialize timer_callback_group_ (#3914) Signed-off-by: tomoya.kimura --- .../compare_map_segmentation/src/voxel_grid_map_loader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/perception/compare_map_segmentation/src/voxel_grid_map_loader.cpp b/perception/compare_map_segmentation/src/voxel_grid_map_loader.cpp index dc9f965e0696a..d630fec4a39a2 100644 --- a/perception/compare_map_segmentation/src/voxel_grid_map_loader.cpp +++ b/perception/compare_map_segmentation/src/voxel_grid_map_loader.cpp @@ -307,6 +307,7 @@ VoxelGridDynamicMapLoader::VoxelGridDynamicMapLoader( } const auto period_ns = rclcpp::Rate(timer_interval_ms).period(); + timer_callback_group_ = node->create_callback_group(rclcpp::CallbackGroupType::MutuallyExclusive); map_update_timer_ = rclcpp::create_timer( node, node->get_clock(), period_ns, std::bind(&VoxelGridDynamicMapLoader::timer_callback, this), timer_callback_group_);