29 #ifdef G2O_HAVE_OPENGL 43 assert(from.size() == 1 && from.count(
_vertices[0]) == 1 &&
"Can not initialize VertexSE2 position by VertexPointXY");
87 *(params->
os) << std::endl;
91 #ifdef G2O_HAVE_OPENGL 98 refreshPropertyPtrs(params_);
99 if (! _previousParams)
102 if (_show && !_show->value())
112 Vector2D p(cos(theta)*guessRange, sin(theta)*guessRange);
113 glPushAttrib(GL_ENABLE_BIT|GL_LIGHTING|GL_COLOR);
114 glDisable(GL_LIGHTING);
118 glPushAttrib(GL_POINT_SIZE);
121 glVertex3f((
float)p.x(),(float)p.y(),0.f);
130 glVertex3f((
float)p.x(),(float)p.y(),0.f);
Eigen::Matrix< double, 2, 1, Eigen::ColMajor > Vector2D
const Vertex * vertex(size_t i) const
#define __PRETTY_FUNCTION__
virtual void initialEstimate(const OptimizableGraph::VertexSet &from, OptimizableGraph::Vertex *to)
Abstract action that operates on a graph entity.
std::set< Vertex * > VertexSet
virtual bool write(std::ostream &os) const
write the vertex to a stream
2D pose Vertex, (x,y,theta)
const std::string & name() const
returns the name of an action, e.g "draw"
const Eigen::Rotation2Dd & rotation() const
rotational component
EIGEN_MAKE_ALIGNED_OPERATOR_NEW EdgeSE2PointXYBearing()
#define LANDMARK_EDGE_COLOR
void setEstimate(const EstimateType &et)
set the estimate for the vertex also calls updateCache()
A general case Vertex for optimization.
EdgeSE2PointXYBearingWriteGnuplotAction()
EIGEN_STRONG_INLINE const InformationType & information() const
information matrix of the constraint
virtual bool read(std::istream &is)
read the vertex from a stream, i.e., the internal state of the vertex
virtual HyperGraphElementAction * operator()(HyperGraph::HyperGraphElement *element, HyperGraphElementAction::Parameters *params_)
redefine this to do the action stuff. If successful, the action returns a pointer to itself ...
const EstimateType & estimate() const
return the current estimate of the vertex
const Vector2D & translation() const
translational component
#define LANDMARK_EDGE_GHOST_COLOR
EIGEN_STRONG_INLINE const Measurement & measurement() const
accessor functions for the measurement represented by the edge
void setRotation(const Eigen::Rotation2Dd &R_)
VertexContainer _vertices