25 _error[1] = m1[1] - _measurement[1];
26 _error[2] = m2[0] - _measurement[2];
27 _error[3] = m2[1] - _measurement[3];
32 is >>
information()(0,0) >>
information()(0,1) >>
information()(0,2) >>
information()(0,3) >>
information()(1,1) >>
information()(1,2) >>
information()(1,3) >>
information()(2,2) >>
information()(2,3) >>
information()(3,3);
44 os <<
information()(0,0) <<
" " <<
information()(0,1) <<
" " <<
information()(0,2) <<
" " <<
information()(0,3) <<
" " <<
information()(1,1) <<
" " <<
information()(1,2) <<
" " <<
information()(1,3) <<
" " <<
information()(2,2) <<
" " <<
information()(2,3) <<
" " <<
information()(3,3);
58 bool estimatev1 =
true;
59 bool estimatev2 =
true;
61 for(std::set<HyperGraph::Vertex*>::iterator it=fixed.begin(); it!=fixed.end(); it++){
62 if(v1->
id() == (*it)->id()){
65 else if(v2->
id() == (*it)->id()){
85 for(std::set<HyperGraph::Vertex *>::iterator it=fixed.begin(); it!=fixed.end(); it++){
Eigen::Matrix< double, 2, 1, Eigen::ColMajor > Vector2D
int id() const
returns the id
Eigen::Matrix< double, 4, 1, Eigen::ColMajor > Vector4D
std::set< Vertex * > VertexSet
2D pose Vertex, (x,y,theta)
virtual void initialEstimate(const OptimizableGraph::VertexSet &, OptimizableGraph::Vertex *)
virtual bool write(std::ostream &os) const
write the vertex to a stream
virtual void computeError()
base class to represent an edge connecting an arbitrary number of nodes
virtual double initialEstimatePossible(const OptimizableGraph::VertexSet &, OptimizableGraph::Vertex *)
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 setMeasurementFromState()
const EstimateType & estimate() const
return the current estimate of the vertex
SE2 inverse() const
invert :-)
virtual bool read(std::istream &is)
read the vertex from a stream, i.e., the internal state of the vertex
EIGEN_STRONG_INLINE const Measurement & measurement() const
accessor functions for the measurement represented by the edge
VertexContainer _vertices