Skip to content

Commit

Permalink
Merge pull request #1667 from borglab/fix/warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal authored Dec 4, 2023
2 parents c8d17b2 + b4d7b49 commit 2b54549
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 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
4 changes: 3 additions & 1 deletion gtsam/linear/GaussianConditional.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ namespace gtsam {

/**
* A GaussianConditional functions as the node in a Bayes network.
* It has a set of parents y,z, etc. and implements a probability density on x.
* It has a set of parents y,z, etc. and implements a Gaussian probability density p(x | y, z) on x.
* The negative log-density is given by \f$ \frac{1}{2} |Rx - (d - Sy - Tz - ...)|^2 \f$
* The mean of the conditional density is \f$ R^{-1}(d - Sy - Tz - ...) \f$.
* The covariance of the conditional density is given by the noise model and is constrained to be diagonal.
* @ingroup linear
*/
class GTSAM_EXPORT GaussianConditional :
Expand Down
2 changes: 1 addition & 1 deletion gtsam/navigation/NavState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* -------------------------------------------------------------------------- */

/**
* @file NavState.h
* @file NavState.cpp
* @brief Navigation state composing of attitude, position, and velocity
* @author Frank Dellaert
* @date July 2015
Expand Down
4 changes: 2 additions & 2 deletions gtsam/nonlinear/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Install headers
file(GLOB nonlinear_headers "*.h")
install(FILES ${nonlinear_headers} DESTINATION include/gtsam/nonlinear)
install(FILES ${nonlinear_headers} DESTINATION "include/gtsam/nonlinear")

file(GLOB nonlinear_headers_internal "internal/*.h")
install(FILES ${nonlinear_headers_internal} DESTINATION include/gtsam/nonlinear/internal)
install(FILES ${nonlinear_headers_internal} DESTINATION "include/gtsam/nonlinear/internal")

# Build tests
add_subdirectory(tests)

0 comments on commit 2b54549

Please sign in to comment.