Make WaitForAllComputation wait for work queue in 3D as well (#758)
Repeat the change in #754 by @gaschler for 3D as well.master
parent
f8452821d7
commit
29e4395a5a
|
@ -368,8 +368,9 @@ void PoseGraph::WaitForAllComputations() {
|
|||
constraint_builder_.GetNumFinishedNodes();
|
||||
while (!locker.AwaitWithTimeout(
|
||||
[this]() REQUIRES(mutex_) {
|
||||
return constraint_builder_.GetNumFinishedNodes() ==
|
||||
num_trajectory_nodes_;
|
||||
return ((constraint_builder_.GetNumFinishedNodes() ==
|
||||
num_trajectory_nodes_) &&
|
||||
!work_queue_);
|
||||
},
|
||||
common::FromSeconds(1.))) {
|
||||
std::ostringstream progress_info;
|
||||
|
|
Loading…
Reference in New Issue