check if a JacobianFactor has a dual variable

release/4.3a0
thduynguyen 2014-10-17 13:31:35 -04:00
parent 4be24f4f70
commit b0d95c0a36
1 changed files with 5 additions and 0 deletions

View File

@ -397,6 +397,11 @@ public:
return *dualKey_;
}
/// return true if this factor has a dual key
bool hasDualKey() const {
return dualKey_ != boost::none;
}
protected:
/// Internal function to fill blocks and set dimensions