add using NonlinearFactor::error

release/4.3a0
yetongumich 2024-11-17 23:53:21 -08:00
parent 90536c58d5
commit 037c8b3643
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,8 @@ class GTSAM_EXPORT NonlinearConstraint : public NoiseModelFactor {
/** Use constructors of NoiseModelFactor. */
using Base::Base;
using NonlinearFactor::error;
/** Destructor. */
virtual ~NonlinearConstraint() {}

View File

@ -280,6 +280,8 @@ public:
*/
double weight(const Values& c) const;
using NonlinearFactor::error;
/**
* Calculate the error of the factor.
* This is the log-likelihood, e.g. \f$ 0.5(h(x)-z)^2/\sigma^2 \f$ in case of Gaussian.