From d06108b0d919ab824987d1e822ab2917d9a2518a Mon Sep 17 00:00:00 2001 From: Rainer Kuemmerle Date: Sun, 28 Jan 2024 14:05:45 +0100 Subject: [PATCH] Use more flexible setInformation --- g2o/core/base_edge.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/g2o/core/base_edge.h b/g2o/core/base_edge.h index 70590d293..e1c34a93f 100644 --- a/g2o/core/base_edge.h +++ b/g2o/core/base_edge.h @@ -107,7 +107,8 @@ class BaseEdge : public OptimizableGraph::Edge { return information_; } EIGEN_STRONG_INLINE InformationType& information() { return information_; } - void setInformation(const InformationType& information) { + template + void setInformation(const Eigen::EigenBase& information) { information_ = information; }