Added groups to Values
parent
ce48f9a25c
commit
a89d08ef30
|
@ -84,12 +84,17 @@ namespace gtsam {
|
|||
Values(const Values<J_ALT>& other) {} // do nothing when initializing with wrong type
|
||||
virtual ~Values() {}
|
||||
|
||||
/// @name Testable
|
||||
/// @{
|
||||
|
||||
/** print */
|
||||
void print(const std::string &s="") const;
|
||||
|
||||
/** Test whether configs are identical in keys and values */
|
||||
bool equals(const Values& expected, double tol=1e-9) const;
|
||||
|
||||
/// @}
|
||||
|
||||
/** Retrieve a variable by j, throws KeyDoesNotExist<J> if not found */
|
||||
const Value& at(const J& j) const;
|
||||
|
||||
|
@ -120,7 +125,8 @@ namespace gtsam {
|
|||
iterator begin() { return values_.begin(); }
|
||||
iterator end() { return values_.end(); }
|
||||
|
||||
// Manifold operations
|
||||
/// @name Manifold Operations
|
||||
/// @{
|
||||
|
||||
/** The dimensionality of the tangent space */
|
||||
size_t dim() const;
|
||||
|
@ -134,6 +140,8 @@ namespace gtsam {
|
|||
/** Get a delta config about a linearization point c0 (*this) */
|
||||
void localCoordinates(const Values& cp, const Ordering& ordering, VectorValues& delta) const;
|
||||
|
||||
/// @}
|
||||
|
||||
// imperative methods:
|
||||
|
||||
/** Add a variable with the given j, throws KeyAlreadyExists<J> if j is already present */
|
||||
|
|
Loading…
Reference in New Issue