Skip to content

Commit

Permalink
Use more flexible setInformation
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerKuemmerle committed Jan 28, 2024
1 parent 8091822 commit d06108b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion g2o/core/base_edge.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ class BaseEdge : public OptimizableGraph::Edge {
return information_;
}
EIGEN_STRONG_INLINE InformationType& information() { return information_; }
void setInformation(const InformationType& information) {
template <typename Derived>
void setInformation(const Eigen::EigenBase<Derived>& information) {
information_ = information;
}

Expand Down

0 comments on commit d06108b

Please sign in to comment.