Added constructor
parent
b4c5237925
commit
7d2f69335d
|
@ -41,6 +41,16 @@ public:
|
|||
Base() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct from a constrained noisemodel JacobianFactor with a dual key.
|
||||
*/
|
||||
explicit LinearEquality(const JacobianFactor& jf, Key dualKey) : Base(jf), dualKey_(dualKey){
|
||||
if (!jf.isConstrained()) {
|
||||
throw std::runtime_error("Cannot convert an unconstrained JacobianFactor to LinearEquality");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** Conversion from HessianFactor (does Cholesky to obtain Jacobian matrix) */
|
||||
explicit LinearEquality(const HessianFactor& hf) {
|
||||
throw std::runtime_error("Cannot convert HessianFactor to LinearEquality");
|
||||
|
|
Loading…
Reference in New Issue