36 std::cout << (s.empty() ?
"" : s +
" ");
38 std::cout << std::endl;
48 throw std::runtime_error(
"Factor::error is not implemented");
const gtsam::Symbol key('X', 0)
virtual void print(const std::string &s="Factor", const KeyFormatter &formatter=DefaultKeyFormatter) const
print
KeyVector keys_
The keys involved in this factor.
virtual void printKeys(const std::string &s="Factor", const KeyFormatter &formatter=DefaultKeyFormatter) const
print only keys
const KeyFormatter & formatter
virtual double error(const HybridValues &c) const
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
std::uint64_t Key
Integer nonlinear key type.
The base class for all factors.
bool equals(const This &other, double tol=1e-9) const
check equality