29 #ifdef G2O_HAVE_OPENGL 58 assert(from.size() == 1 && from.count(
_vertices[0]) == 1 &&
"Can not initialize VertexSE2 position by VertexPointXY");
62 if (from.count(vi) > 0 && to == vj) {
67 #ifndef NUMERIC_JACOBIAN_TWO_D_TYPES 75 const double& x2 = vj->
estimate()[0];
76 const double& y2 = vj->
estimate()[1];
78 double aux_1 = cos(th1) ;
79 double aux_2 = -aux_1 ;
80 double aux_3 = sin(th1) ;
114 *(params->
os) << toEdge->
estimate().x() <<
" " << toEdge->
estimate().y() << std::endl;
115 *(params->
os) << std::endl;
119 #ifdef G2O_HAVE_OPENGL 127 refreshPropertyPtrs(params_);
128 if (! _previousParams)
131 if (_show && !_show->value())
141 glPushAttrib(GL_ENABLE_BIT|GL_LIGHTING|GL_COLOR);
142 glDisable(GL_LIGHTING);
146 glPushAttrib(GL_POINT_SIZE);
149 glVertex3f((
float)p.x(),(float)p.y(),0.f);
158 glVertex3f((
float)p.x(),(float)p.y(),0.f);
Eigen::Matrix< double, 2, 1, Eigen::ColMajor > Vector2D
virtual void initialEstimate(const OptimizableGraph::VertexSet &from, OptimizableGraph::Vertex *to)
const Vertex * vertex(size_t i) const
#define __PRETTY_FUNCTION__
EIGEN_MAKE_ALIGNED_OPERATOR_NEW EdgeSE2PointXY()
Abstract action that operates on a graph entity.
virtual bool write(std::ostream &os) const
write the vertex to a stream
std::set< Vertex * > VertexSet
2D pose Vertex, (x,y,theta)
const std::string & name() const
returns the name of an action, e.g "draw"
EdgeSE2PointXYWriteGnuplotAction()
JacobianXiOplusType _jacobianOplusXi
int numUndefinedVertices() const
const Eigen::Rotation2Dd & rotation() const
rotational component
#define LANDMARK_EDGE_COLOR
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 ...
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
virtual void linearizeOplus()
const EstimateType & estimate() const
return the current estimate of the vertex
JacobianXjOplusType _jacobianOplusXj
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
VertexContainer _vertices