From d0343919b359754d67633dec7e028a3570e13beb Mon Sep 17 00:00:00 2001 From: Wolfgang Hess Date: Thu, 17 Nov 2016 17:02:27 +0100 Subject: [PATCH] Fix crashing bug on node termination. (#173) --- cartographer_ros/cartographer_ros/node_main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/cartographer_ros/cartographer_ros/node_main.cc b/cartographer_ros/cartographer_ros/node_main.cc index cbe221f..616da97 100644 --- a/cartographer_ros/cartographer_ros/node_main.cc +++ b/cartographer_ros/cartographer_ros/node_main.cc @@ -165,6 +165,7 @@ Node::~Node() { { carto::common::MutexLocker lock(&mutex_); terminating_ = true; + map_builder_.FinishTrajectory(trajectory_id_); } if (occupancy_grid_thread_.joinable()) { occupancy_grid_thread_.join();