Skip to content

Commit

Permalink
fix to remove leftover boost
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Feb 14, 2023
1 parent e36440b commit 04daae0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions gtsam/hybrid/tests/testHybridGaussianFactorGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ TEST(HybridGaussianFactorGraph, Switching) {
// GTSAM_PRINT(*hfg);
// GTSAM_PRINT(ordering_full);

const auto [hbt, remaining] = hfg->eliminatePartialMultifrontal(ordering_full);
const auto [hbt, remaining] =
hfg->eliminatePartialMultifrontal(ordering_full);

// 12 cliques in the bayes tree and 0 remaining variables to eliminate.
EXPECT_LONGS_EQUAL(12, hbt->size());
Expand Down Expand Up @@ -401,7 +402,8 @@ TEST(HybridGaussianFactorGraph, SwitchingISAM) {
}
auto ordering_full = Ordering(ordering);

const auto [hbt, remaining] = hfg->eliminatePartialMultifrontal(ordering_full);
const auto [hbt, remaining] =
hfg->eliminatePartialMultifrontal(ordering_full);

auto new_fg = makeSwitchingChain(12);
auto isam = HybridGaussianISAM(*hbt);
Expand Down Expand Up @@ -470,7 +472,8 @@ TEST(HybridGaussianFactorGraph, SwitchingTwoVar) {
ordering_partial.emplace_back(X(i));
ordering_partial.emplace_back(Y(i));
}
const auto [hbn, remaining] = hfg->eliminatePartialSequential(ordering_partial);
const auto [hbn, remaining] =
hfg->eliminatePartialSequential(ordering_partial);

EXPECT_LONGS_EQUAL(14, hbn->size());
EXPECT_LONGS_EQUAL(11, remaining->size());
Expand Down Expand Up @@ -747,9 +750,9 @@ TEST(HybridGaussianFactorGraph, EliminateTiny1Swapped) {

// Create Gaussian mixture on X(0).
// regression, but mean checked to be 5.0 in both cases:
const auto conditional0 = boost::make_shared<GaussianConditional>(
const auto conditional0 = std::make_shared<GaussianConditional>(
X(0), Vector1(10.1379), I_1x1 * 2.02759),
conditional1 = boost::make_shared<GaussianConditional>(
conditional1 = std::make_shared<GaussianConditional>(
X(0), Vector1(14.1421), I_1x1 * 2.82843);
expectedBayesNet.emplace_back(
new GaussianMixture({X(0)}, {}, {mode}, {conditional0, conditional1}));
Expand Down

0 comments on commit 04daae0

Please sign in to comment.