52 "CACHE_SE3_OFFSET", pv);
82 P =
_cache->offsetParam()->offset();
95 assert(v &&
"Vertex for the Prior edge is not set");
99 if (
_information.block<3, 3>(0, 0).array().abs().sum() == 0) {
100 newEstimate.translation() = v->
estimate().translation();
103 if (
_information.block<3, 3>(3, 3).array().abs().sum() == 0) {
104 newEstimate.matrix().block<3, 3>(0, 0) =
bool writeInformationMatrix(std::ostream &os) const
bool readInformationMatrix(std::istream &is)
bool readParamIds(std::istream &is)
EIGEN_STRONG_INLINE const Measurement & measurement() const
InformationType _information
EIGEN_STRONG_INLINE const InformationType & information() const
bool writeParamIds(std::ostream &os) const
BaseFixedSizedEdge< D, Isometry3, VertexSE3 >::template JacobianType< D, VertexSE3::Dimension > & _jacobianOplusXi
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()
virtual void initialEstimate(const OptimizableGraph::VertexSet &from, OptimizableGraph::Vertex *to)
virtual bool read(std::istream &is)
read the vertex from a stream, i.e., the internal state of the vertex
virtual void linearizeOplus()
ParameterSE3Offset * _offsetParam
virtual void setMeasurement(const Isometry3 &m)
virtual bool setMeasurementFromState()
EIGEN_MAKE_ALIGNED_OPERATOR_NEW EdgeSE3Prior()
virtual bool resolveCaches()
Isometry3 _inverseMeasurement
virtual bool write(std::ostream &os) const
write the vertex to a stream
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)
A general case Vertex for optimization.
3D pose Vertex, represented as an Isometry3
Vector7 toVectorQT(const Isometry3 &t)
Isometry3 fromVectorQT(const Vector7 &v)
bool writeVector(std::ostream &os, const Eigen::DenseBase< Derived > &b)
void computeEdgeSE3PriorGradient(Isometry3 &E, const Eigen::MatrixBase< Derived > &JConstRef, const Isometry3 &Z, const Isometry3 &X, const Isometry3 &P=Isometry3::Identity())
bool readVector(std::istream &is, Eigen::DenseBase< Derived > &b)
Vector6 toVectorMQT(const Isometry3 &t)
Isometry3::ConstLinearPart extractRotation(const Isometry3 &A)
std::vector< Parameter * > ParameterVector
Eigen::Transform< double, 3, Eigen::Isometry, Eigen::ColMajor > Isometry3