Closed Lishen1 closed 1 year ago
maybe better to make something like that:
T& jacobianOplusXi() {}
const T& jacobianOplusXi() const {return ...;}
T& jacobianOplusXj() {}
const T& jacobianOplusXj() const {return ...;}
It was implemented like that to maintain backwards compatibility with the former member variable, to allow implementation of analytic Jacobians. For example in here https://github.com/RainerKuemmerle/g2o/blob/master/g2o/types/slam2d/edge_se2.cpp#L63-L83
As some other internal data structures are based on pointers I wonder if the better solution is not to delete the copy c'tor and assignment operator?
if it non copyable anyway, better to mark it explicitly
BaseBinaryEdge
has no explicit deleted copy constructor or copy assignment operator butreference made it is not possible to copy. it invoke some problems with std containers