-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
// Copyright (c) 2021 Kenji Koide ([email protected]) | ||
#pragma once | ||
|
||
#include <atomic> | ||
#include <gtsam_points/optimizers/incremental_fixed_lag_smoother_ext.hpp> | ||
|
||
namespace gtsam_points { | ||
|
@@ -17,6 +18,7 @@ class IncrementalFixedLagSmootherExtWithFallback : public IncrementalFixedLagSmo | |
const KeyTimestampMap& timestamps = KeyTimestampMap(), | ||
const gtsam::FactorIndices& factorsToRemove = gtsam::FactorIndices()) override; | ||
|
||
bool fallbackHappened() const { return fallback_happend; } | ||
gtsam::Values calculateEstimate() const override; | ||
|
||
const gtsam::Value& calculateEstimate(gtsam::Key key) const; | ||
|
@@ -61,6 +63,7 @@ class IncrementalFixedLagSmootherExtWithFallback : public IncrementalFixedLagSmo | |
private: | ||
double current_stamp; | ||
mutable gtsam::Values values; | ||
mutable std::atomic_bool fallback_happend; | ||
gtsam::NonlinearFactorGraph factors; | ||
std::unordered_map<gtsam::Key, std::vector<gtsam::NonlinearFactor::shared_ptr>> factor_map; | ||
mutable gtsam::FixedLagSmootherKeyTimestampMap stamps; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters