27#ifndef G2O_EDGE_SE2_SEGMENT2D_H
28#define G2O_EDGE_SE2_SEGMENT2D_H
30#include "g2o/config.h"
67 Eigen::Map<Vector2> error1(&
_error(0));
68 Eigen::Map<Vector2> error2(&
_error(2));
76 Eigen::Map<const Vector4> data(d);
82 Eigen::Map<Vector4> data(d);
109 return (from.count(
_vertices[0]) == 1 ? 1.0 : -1.0);
Measurement _measurement
the measurement of the edge
const EstimateType & estimate() const
return the current estimate of the vertex
G2O_TYPES_SLAM2D_ADDONS_API Vector2 measurementP2()
G2O_TYPES_SLAM2D_ADDONS_API void setMeasurementP2(const Vector2 &p2)
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
virtual G2O_TYPES_SLAM2D_ADDONS_API bool write(std::ostream &os) const
write the vertex to a stream
G2O_TYPES_SLAM2D_ADDONS_API EIGEN_MAKE_ALIGNED_OPERATOR_NEW G2O_TYPES_SLAM2D_ADDONS_API EdgeSE2Segment2D()
virtual G2O_TYPES_SLAM2D_ADDONS_API double initialEstimatePossible(const OptimizableGraph::VertexSet &from, OptimizableGraph::Vertex *to)
G2O_TYPES_SLAM2D_ADDONS_API Vector2 measurementP1()
virtual G2O_TYPES_SLAM2D_ADDONS_API int measurementDimension() const
virtual G2O_TYPES_SLAM2D_ADDONS_API void initialEstimate(const OptimizableGraph::VertexSet &from, OptimizableGraph::Vertex *to)
virtual G2O_TYPES_SLAM2D_ADDONS_API bool getMeasurementData(double *d) const
virtual G2O_TYPES_SLAM2D_ADDONS_API bool setMeasurementData(const double *d)
virtual G2O_TYPES_SLAM2D_ADDONS_API bool setMeasurementFromState()
G2O_TYPES_SLAM2D_ADDONS_API void setMeasurementP1(const Vector2 &p1)
G2O_TYPES_SLAM2D_ADDONS_API void computeError()
VertexContainer _vertices
std::set< Vertex * > VertexSet
A general case Vertex for optimization.
SE2 inverse() const
invert :-)
2D pose Vertex, (x,y,theta)
Vector2 estimateP1() const
Vector2 estimateP2() const
#define G2O_TYPES_SLAM2D_ADDONS_API