28 #ifdef G2O_HAVE_OPENGL 45 if (from.count(l) == 0)
47 if (from.count(vi) == 1) {
57 is >> p(0) >> p(1) >> p(2);
72 os << p(0) <<
" " << p(1) <<
" " << p(2);
79 #ifdef G2O_HAVE_OPENGL 80 EdgeSE2SensorCalibDrawAction::EdgeSE2SensorCalibDrawAction() :
87 if (
typeid(*element).name()!=_typeName)
92 glColor3f(0.5,0.5,1.0);
93 glPushAttrib(GL_ENABLE_BIT);
94 glDisable(GL_LIGHTING);
const Vertex * vertex(size_t i) const
Vector3D toVector() const
convert to a 3D vector (x, y, theta)
Eigen::Matrix< double, 3, 1, Eigen::ColMajor > Vector3D
Abstract action that operates on a graph entity.
scanmatch measurement that also calibrates an offset for the laser
std::set< Vertex * > VertexSet
virtual bool write(std::ostream &os) const
write the vertex to a stream
2D pose Vertex, (x,y,theta)
virtual void initialEstimate(const OptimizableGraph::VertexSet &from, OptimizableGraph::Vertex *to)
void fromVector(const Vector3D &v)
assign from a 3D vector (x, y, theta)
base class to represent an edge connecting an arbitrary number of nodes
void setEstimate(const EstimateType &et)
set the estimate for the vertex also calls updateCache()
A general case Vertex for optimization.
virtual void resize(size_t size)
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
const EstimateType & estimate() const
return the current estimate of the vertex
SE2 inverse() const
invert :-)
const Vector2D & translation() const
translational component
EIGEN_STRONG_INLINE const Measurement & measurement() const
accessor functions for the measurement represented by the edge
VertexContainer _vertices