48 assert(from.size() == 1 && from.count(
_vertices[0]) == 1 &&
49 "Can not initialize VertexSE2 position by VertexSegment2D. I could if "
54 if (from.count(vi) > 0 && to == vj) {
bool writeInformationMatrix(std::ostream &os) const
write the upper trinagular part of the information matrix into the stream
bool readInformationMatrix(std::istream &is)
EIGEN_STRONG_INLINE const Measurement & measurement() const
accessor functions for the measurement represented by the edge
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()
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()
G2O_TYPES_SLAM2D_ADDONS_API Vector2 measurementP1()
virtual G2O_TYPES_SLAM2D_ADDONS_API void initialEstimate(const OptimizableGraph::VertexSet &from, OptimizableGraph::Vertex *to)
VertexContainer _vertices
std::set< Vertex * > VertexSet
A general case Vertex for optimization.
2D pose Vertex, (x,y,theta)
void setEstimateP2(const Vector2 &p2)
void setEstimateP1(const Vector2 &p1)
bool writeVector(std::ostream &os, const Eigen::DenseBase< Derived > &b)
bool readVector(std::istream &is, Eigen::DenseBase< Derived > &b)