From 93149ae5f2ae92f2d38cdbaed92d39bb20914f4c Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Thu, 9 May 2013 18:59:20 +0000 Subject: [PATCH] Updated Concurrent example, forcing a call to smoother.update() between each synchronization --- .../examples/ConcurrentFilteringAndSmoothingExample.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtsam_unstable/examples/ConcurrentFilteringAndSmoothingExample.cpp b/gtsam_unstable/examples/ConcurrentFilteringAndSmoothingExample.cpp index bdbb3835f..002d24ad4 100644 --- a/gtsam_unstable/examples/ConcurrentFilteringAndSmoothingExample.cpp +++ b/gtsam_unstable/examples/ConcurrentFilteringAndSmoothingExample.cpp @@ -132,6 +132,7 @@ int main(int argc, char** argv) { // Manually synchronize the Concurrent Filter and Smoother every 1.0 s if(fmod(time, 1.0) < 0.01) { // Synchronize the Filter and Smoother + concurrentSmoother.update(); synchronize(concurrentFilter, concurrentSmoother); } @@ -210,6 +211,7 @@ int main(int argc, char** argv) { // Manually synchronize the Concurrent Filter and Smoother every 1.0 s if(fmod(time, 1.0) < 0.01) { // Synchronize the Filter and Smoother + concurrentSmoother.update(); synchronize(concurrentFilter, concurrentSmoother); } @@ -282,6 +284,7 @@ int main(int argc, char** argv) { // Manually synchronize the Concurrent Filter and Smoother every 1.0 s if(fmod(time, 1.0) < 0.01) { // Synchronize the Filter and Smoother + concurrentSmoother.update(); synchronize(concurrentFilter, concurrentSmoother); cout << "******************************************************************" << endl; cout << "Syncing Concurrent Filter and Smoother." << endl;