Wrapped some more iSAM methods. Note that wrap cannot handle returning a reference, so the 4 methods we (Yong-Dian and I) added make a copy, just by declaring it a non-reference in gtsam.h. Works, but be mindful of cost.
parent
87fe727838
commit
4bbe66f106
7
gtsam.h
7
gtsam.h
|
|
@ -659,6 +659,7 @@ class Ordering {
|
|||
|
||||
class NonlinearFactorGraph {
|
||||
NonlinearFactorGraph();
|
||||
void print(string s) const;
|
||||
};
|
||||
|
||||
class Values {
|
||||
|
|
@ -975,6 +976,12 @@ class ISAM {
|
|||
void reorder_relinearize();
|
||||
void addKey(size_t key);
|
||||
void setOrdering(const gtsam::Ordering& new_ordering);
|
||||
|
||||
// These might be expensive as instead of a reference the wrapper will make a copy
|
||||
gtsam::GaussianISAM bayesTree() const;
|
||||
visualSLAM::Values getLinearizationPoint() const;
|
||||
gtsam::Ordering getOrdering() const;
|
||||
gtsam::NonlinearFactorGraph getFactorsUnsafe() const;
|
||||
};
|
||||
|
||||
}///\namespace visualSLAM
|
||||
|
|
|
|||
Loading…
Reference in New Issue