Added clone. Don't like this ugly copy/paste thing all over :-(
parent
8e9dd87d0b
commit
a24d4ad3d1
|
|
@ -45,6 +45,11 @@ public:
|
||||||
|
|
||||||
virtual ~PoseRotationPrior() {}
|
virtual ~PoseRotationPrior() {}
|
||||||
|
|
||||||
|
/// @return a deep copy of this factor
|
||||||
|
virtual gtsam::NonlinearFactor::shared_ptr clone() const {
|
||||||
|
return boost::static_pointer_cast<gtsam::NonlinearFactor>(
|
||||||
|
gtsam::NonlinearFactor::shared_ptr(new This(*this))); }
|
||||||
|
|
||||||
// access
|
// access
|
||||||
const Rotation& measured() const { return measured_; }
|
const Rotation& measured() const { return measured_; }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue