33 #ifdef G2O_HAVE_OPENGL 35 #include <OpenGL/gl.h> 65 assert(from.size() == 1 && from.count(
_vertices[0]) == 1 &&
"Can not initialize VertexSE2 position by VertexLine2D");
69 if (from.count(vi) > 0 && to == vj) {
74 Vector2D n(cos(est[0]), sin(est[0]));
Eigen::Matrix< double, 2, 1, Eigen::ColMajor > Vector2D
virtual bool write(std::ostream &os) const
write the vertex to a stream
virtual bool read(std::istream &is)
read the vertex from a stream, i.e., the internal state of the vertex
std::set< Vertex * > VertexSet
virtual void initialEstimate(const OptimizableGraph::VertexSet &from, OptimizableGraph::Vertex *to)
2D pose Vertex, (x,y,theta)
const Eigen::Rotation2Dd & rotation() const
rotational component
double normalize_theta(double theta)
EIGEN_MAKE_ALIGNED_OPERATOR_NEW EdgeSE2Line2D()
void setEstimate(const EstimateType &et)
set the estimate for the vertex also calls updateCache()
A general case Vertex for optimization.
EIGEN_STRONG_INLINE const InformationType & information() const
information matrix of the constraint
const Vector2D & translation() const
translational component
EIGEN_STRONG_INLINE const Measurement & measurement() const
accessor functions for the measurement represented by the edge
VertexContainer _vertices