55 "CACHE_SE2_OFFSET", pv);
58 "CACHE_SE2_OFFSET", pv);
64 is >> pidFrom >> pidTo;
71 if (is.bad())
return false;
106 if (from_.count(from) > 0)
bool writeInformationMatrix(std::ostream &os) const
write the upper trinagular part of the information matrix into the stream
bool readInformationMatrix(std::istream &is)
EIGEN_STRONG_INLINE const Measurement & measurement() const
accessor functions for the measurement represented by the edge
EIGEN_STRONG_INLINE const InformationType & information() const
information matrix of the constraint
const EstimateType & estimate() const
return the current estimate of the vertex
void setEstimate(const EstimateType &et)
set the estimate for the vertex also calls updateCache()
const ParameterSE2Offset * offsetParam() const
virtual bool setMeasurementFromState()
virtual bool resolveCaches()
CacheSE2Offset * _cacheTo
ParameterSE2Offset * _offsetFrom
virtual bool read(std::istream &is)
read the vertex from a stream, i.e., the internal state of the vertex
virtual bool write(std::ostream &os) const
write the vertex to a stream
ParameterSE2Offset * _offsetTo
CacheSE2Offset * _cacheFrom
virtual void initialEstimate(const OptimizableGraph::VertexSet &from, OptimizableGraph::Vertex *to)
virtual void setMeasurement(const SE2 &m)
VertexContainer _vertices
std::set< Vertex * > VertexSet
bool installParameter(ParameterType *&p, size_t argNo, int paramId=-1)
void resizeParameters(size_t newSize)
void resolveCache(CacheType *&cache, OptimizableGraph::Vertex *, const std::string &_type, const ParameterVector ¶meters)
bool setParameterId(int argNum, int paramId)
A general case Vertex for optimization.
const SE2 & offset() const
const Vector2 & translation() const
translational component
SE2 inverse() const
invert :-)
const Rotation2D & rotation() const
rotational component
2D pose Vertex, (x,y,theta)
bool writeVector(std::ostream &os, const Eigen::DenseBase< Derived > &b)
bool readVector(std::istream &is, Eigen::DenseBase< Derived > &b)
std::vector< Parameter * > ParameterVector