27 #ifndef G2O_EDGE_SE2_SEGMENT2D_H 28 #define G2O_EDGE_SE2_SEGMENT2D_H 30 #include "g2o/config.h" 53 Eigen::Map<Vector2D> error1(&
_error(0));
54 Eigen::Map<Vector2D> error2(&
_error(2));
62 Eigen::Map<const Vector4D> data(d);
68 Eigen::Map<Vector4D> data(d);
Eigen::Matrix< double, 2, 1, Eigen::ColMajor > Vector2D
G2O_TYPES_SLAM2D_ADDONS_API EIGEN_MAKE_ALIGNED_OPERATOR_NEW G2O_TYPES_SLAM2D_ADDONS_API EdgeSE2Segment2D()
G2O_TYPES_SLAM2D_ADDONS_API void computeError()
virtual G2O_TYPES_SLAM2D_ADDONS_API bool setMeasurementData(const double *d)
std::set< Vertex * > VertexSet
2D pose Vertex, (x,y,theta)
G2O_TYPES_SLAM2D_ADDONS_API void setMeasurementP1(const Vector2D &p1)
virtual G2O_TYPES_SLAM2D_ADDONS_API bool write(std::ostream &os) const
write the vertex to a stream
virtual G2O_TYPES_SLAM2D_ADDONS_API bool setMeasurementFromState()
virtual G2O_TYPES_SLAM2D_ADDONS_API double initialEstimatePossible(const OptimizableGraph::VertexSet &from, OptimizableGraph::Vertex *to)
virtual G2O_TYPES_SLAM2D_ADDONS_API int measurementDimension() const
G2O_TYPES_SLAM2D_ADDONS_API Vector2D measurementP1()
A general case Vertex for optimization.
#define G2O_TYPES_SLAM2D_ADDONS_API
Vector2D estimateP1() const
G2O_TYPES_SLAM2D_ADDONS_API Vector2D measurementP2()
const EstimateType & estimate() const
return the current estimate of the vertex
virtual G2O_TYPES_SLAM2D_ADDONS_API bool getMeasurementData(double *d) const
Vector2D estimateP2() const
SE2 inverse() const
invert :-)
virtual G2O_TYPES_SLAM2D_ADDONS_API bool read(std::istream &is)
read the vertex from a stream, i.e., the internal state of the vertex
G2O_TYPES_SLAM2D_ADDONS_API void setMeasurementP2(const Vector2D &p2)
virtual G2O_TYPES_SLAM2D_ADDONS_API void initialEstimate(const OptimizableGraph::VertexSet &from, OptimizableGraph::Vertex *to)
VertexContainer _vertices