Skip to content

Commit

Permalink
report correct error for discreteElimination
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Nov 9, 2023
1 parent ba23e45 commit 90a9e6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtsam/hybrid/HybridGaussianFactorGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ discreteElimination(const HybridGaussianFactorGraph &factors,
// TODO(dellaert): is this correct? If so explain here.
} else if (auto hc = dynamic_pointer_cast<HybridConditional>(f)) {
auto dc = hc->asDiscrete();
if (!dc) throwRuntimeError("continuousElimination", dc);
if (!dc) throwRuntimeError("discreteElimination", dc);
dfg.push_back(hc->asDiscrete());
} else {
throwRuntimeError("continuousElimination", f);
throwRuntimeError("discreteElimination", f);
}
}

Expand Down

0 comments on commit 90a9e6f

Please sign in to comment.