diff --git a/cartographer/mapping_2d/sparse_pose_graph.cc b/cartographer/mapping_2d/sparse_pose_graph.cc index c3ad9f1..cc2d432 100644 --- a/cartographer/mapping_2d/sparse_pose_graph.cc +++ b/cartographer/mapping_2d/sparse_pose_graph.cc @@ -355,13 +355,13 @@ void SparsePoseGraph::HandleWorkQueue() { run_loop_closure_ = false; while (!run_loop_closure_) { if (work_queue_->empty()) { - LOG(INFO) << "We caught up. Hooray!"; work_queue_.reset(); return; } work_queue_->front()(); work_queue_->pop_front(); } + LOG(INFO) << "Remaining work items in queue: " << work_queue_->size(); // We have to optimize again. HandleWorkQueue(); });