27 #ifndef G2O_VERTEX_SE2_H 28 #define G2O_VERTEX_SE2_H 30 #include "g2o/config.h" 44 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
54 t+=Eigen::Map<const Vector2D>(update);
56 _estimate.setTranslation(t);
57 _estimate.setRotation(Eigen::Rotation2Dd(angle));
61 _estimate=
SE2(est[0], est[1], est[2]);
66 Eigen::Map<Vector3D> v(est);
67 v = _estimate.toVector();
74 return setEstimateData(est);
78 return getEstimateData(est);
83 virtual bool read(std::istream& is);
84 virtual bool write(std::ostream& os)
const;
95 #ifdef G2O_HAVE_OPENGL 98 VertexSE2DrawAction();
Eigen::Matrix< double, 2, 1, Eigen::ColMajor > Vector2D
virtual bool setMinimalEstimateDataImpl(const double *est)
virtual void oplusImpl(const double *update)
Abstract action that operates on a graph entity.
virtual bool setEstimateDataImpl(const double *est)
2D pose Vertex, (x,y,theta)
virtual void setToOriginImpl()
sets the node to the origin (used in the multilevel stuff)
#define G2O_TYPES_SLAM2D_API
virtual int estimateDimension() const
virtual bool getMinimalEstimateData(double *est) const
double normalize_theta(double theta)
virtual bool getEstimateData(double *est) const
virtual int minimalEstimateDimension() const