Added virtual destructor: for some reason if I remove virtual methods the unit tests fail...
parent
e976aae38a
commit
06eb801526
8
gtsam.h
8
gtsam.h
|
@ -1682,7 +1682,6 @@ class Values {
|
||||||
gtsam::Cal3DS2}>
|
gtsam::Cal3DS2}>
|
||||||
void insert(size_t j, const T& value);
|
void insert(size_t j, const T& value);
|
||||||
void insert(const gtsam::Values& values);
|
void insert(const gtsam::Values& values);
|
||||||
void update(size_t j, const gtsam::Value& val);
|
|
||||||
void update(const gtsam::Values& values);
|
void update(const gtsam::Values& values);
|
||||||
void erase(size_t j);
|
void erase(size_t j);
|
||||||
void swap(gtsam::Values& values);
|
void swap(gtsam::Values& values);
|
||||||
|
@ -1698,6 +1697,13 @@ class Values {
|
||||||
|
|
||||||
// enabling serialization functionality
|
// enabling serialization functionality
|
||||||
void serialize() const;
|
void serialize() const;
|
||||||
|
|
||||||
|
// New in 4.0, we have to specialize every insert/update to generate wrappers
|
||||||
|
// Instead of the old:
|
||||||
|
// void insert(size_t j, const gtsam::Value& value);
|
||||||
|
// void update(size_t j, const gtsam::Value& val);
|
||||||
|
void insert(size_t j, const gtsam::Pose2& t);
|
||||||
|
void update(size_t j, const gtsam::Pose2& t);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Actually a FastList<Key>
|
// Actually a FastList<Key>
|
||||||
|
|
|
@ -58,6 +58,8 @@ public:
|
||||||
return EssentialMatrix(Rot3::Random(rng), Unit3::Random(rng));
|
return EssentialMatrix(Rot3::Random(rng), Unit3::Random(rng));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual ~EssentialMatrix() {}
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
/// @name Testable
|
/// @name Testable
|
||||||
|
|
Loading…
Reference in New Issue