Skip to content
Snippets Groups Projects
Commit 810acf29 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Remove getJacobianMethod() overrriden from the base class

parent 38a66368
No related branches found
No related tags found
1 merge request!156Remove getJacobianMethod() overrriden from the base class
Pipeline #
Showing
with 1 addition and 150 deletions
......@@ -51,11 +51,6 @@ class ConstraintAHP : public ConstraintAutodiff<ConstraintAHP, 2, 3, 4, 3, 4, 4>
const T* const _lmk_hmg,
T* _residuals) const;
/** \brief Returns the jacobians computation method
**/
virtual JacobianMethod getJacobianMethod() const override;
// Static creator method
static ConstraintAHPPtr create(const FeatureBasePtr& _ftr_ptr,
const LandmarkAHPPtr& _lmk_ahp_ptr,
......@@ -190,11 +185,6 @@ inline bool ConstraintAHP::operator ()(const T* const _current_frame_p,
return true;
}
inline wolf::JacobianMethod ConstraintAHP::getJacobianMethod() const
{
return JAC_AUTO;
}
inline wolf::ConstraintAHPPtr ConstraintAHP::create(const FeatureBasePtr& _ftr_ptr,
const LandmarkAHPPtr& _lmk_ahp_ptr,
const ProcessorBasePtr& _processor_ptr,
......
......@@ -33,11 +33,6 @@ class ConstraintBlockAbsolute: public ConstraintAutodiff<ConstraintBlockAbsolute
template<typename T>
bool operator ()(const T* const _sb, T* _residuals) const;
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
};
template<typename T>
......
......@@ -116,16 +116,6 @@ class ConstraintContainer: public ConstraintAutodiff<ConstraintContainer,3,2,1,2
return true;
}
/** \brief Returns the jacobians computation method
*
* Returns the jacobians computation method
*
**/
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
public:
static ConstraintBasePtr create(const FeatureBasePtr& _feature_ptr,
......
......@@ -34,16 +34,6 @@ class ConstraintCorner2D: public ConstraintAutodiff<ConstraintCorner2D, 3,2,1,2,
bool operator ()(const T* const _robotP, const T* const _robotO, const T* const _landmarkP,
const T* const _landmarkO, T* _residuals) const;
/** \brief Returns the jacobians computation method
*
* Returns the jacobians computation method
*
**/
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
static ConstraintBasePtr create(const FeatureBasePtr& _feature_ptr, const NodeBasePtr& _correspondant_ptr, const ProcessorBasePtr& _processor_ptr = nullptr)
{
return std::make_shared<ConstraintCorner2D>(_feature_ptr, std::static_pointer_cast<LandmarkCorner2D>(_correspondant_ptr), _processor_ptr);
......
......@@ -27,6 +27,7 @@ class ConstraintEpipolar : public ConstraintBase
/** Returns a residual vector and a vector of Jacobian matrix corresponding to each state block evaluated in the point provided in _states_ptr
**/
virtual void evaluate(const std::vector<const Scalar*>& _states_ptr, Eigen::VectorXs& residual_, std::vector<Eigen::MatrixXs>& jacobians_) const override {};
/** \brief Returns the jacobians computation method
**/
virtual JacobianMethod getJacobianMethod() const override {return JAC_ANALYTIC;}
......
......@@ -33,16 +33,6 @@ class ConstraintFixBias: public ConstraintAutodiff<ConstraintFixBias,6,3,3>
template<typename T>
bool operator ()(const T* const _ab, const T* const _wb, T* _residuals) const;
/** \brief Returns the jacobians computation method
*
* Returns the jacobians computation method
*
**/
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
};
template<typename T>
......
......@@ -26,16 +26,6 @@ class ConstraintGPS2D : public ConstraintAutodiff<ConstraintGPS2D, 2, 2>
template<typename T>
bool operator ()(const T* const _x, T* _residuals) const;
/** \brief Returns the jacobians computation method
*
* Returns the jacobians computation method
*
**/
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
};
template<typename T>
......
......@@ -54,16 +54,6 @@ class ConstraintGPSPseudorange2D : public ConstraintAutodiff<ConstraintGPSPseudo
const T* const _bias, const T* const _map_p, const T* const _map_o,
T* _residual) const;
/** \brief Returns the jacobians computation method
*
* Returns the jacobians computation method
*
**/
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
protected:
Eigen::Vector3s sat_position_;
Scalar pseudorange_;
......
......@@ -53,17 +53,6 @@ class ConstraintGPSPseudorange3D: public ConstraintAutodiff<ConstraintGPSPseudor
const T* const _bias, const T* const _init_vehicle_p, const T* const _init_vehicle_o,
T* _residual) const;
/** \brief Returns the jacobians computation method
*
* Returns the jacobians computation method
*
**/
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
protected:
Eigen::Vector3s sat_position_;
Scalar pseudorange_;
......
......@@ -72,8 +72,6 @@ class ConstraintIMU : public ConstraintAutodiff<ConstraintIMU, 15, 3, 4, 3, 6, 3
const Eigen::MatrixBase<D1> & _wb2,
Eigen::MatrixBase<D3> & _res) const;
virtual JacobianMethod getJacobianMethod() const override;
/* Function expectation(...)
* params :
* Vector3s _p1 : position in imu frame
......@@ -450,13 +448,6 @@ inline void ConstraintIMU::expectation(const Eigen::MatrixBase<D1> & _p1,
imu::betweenStates(_p1, _q1, _v1, _p2, _q2, _v2, _dt, _pe, _qe, _ve);
}
inline JacobianMethod ConstraintIMU::getJacobianMethod() const
{
return JAC_AUTO;
}
} // namespace wolf
......
......@@ -37,13 +37,6 @@ class ConstraintOdom2D : public ConstraintAutodiff<ConstraintOdom2D, 3, 2, 1, 2,
bool operator ()(const T* const _p1, const T* const _o1, const T* const _p2, const T* const _o2,
T* _residuals) const;
/** \brief Returns the jacobians computation method
**/
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
public:
static wolf::ConstraintBasePtr create(const FeatureBasePtr& _feature_ptr, const NodeBasePtr& _correspondant_ptr, const ProcessorBasePtr& _processor_ptr)
{
......
......@@ -90,16 +90,6 @@ class ConstraintOdom2DAnalytic : public ConstraintRelative2DAnalytic
//
// jacobians[3] << 0, 0, 1;
// jacobians[3] = getMeasurementSquareRootInformationUpper() * jacobians[0];
// }
//
// /** \brief Returns the jacobians computation method
// *
// * Returns the jacobians computation method
// *
// **/
// virtual JacobianMethod getJacobianMethod() const
// {
// return AUTO;
// }
......
......@@ -28,8 +28,6 @@ class ConstraintOdom3D : public ConstraintAutodiff<ConstraintOdom3D,6,3,4,3,4>
virtual ~ConstraintOdom3D() = default;
JacobianMethod getJacobianMethod() const override {return JAC_AUTO;}
template<typename T>
bool operator ()(const T* const _p_current,
const T* const _q_current,
......
......@@ -84,16 +84,6 @@ class ConstraintPoint2D: public ConstraintAutodiff<ConstraintPoint2D, 2,2,1,2,1,
template <typename T>
bool operator ()(const T* const _robotP, const T* const _robotO, const T* const _landmarkOriginP, const T* const _landmarkOriginO, const T* const _landmarkPoint, T* _residuals) const;
/** \brief Returns the jacobians computation method
*
* Returns the jacobians computation method
*
**/
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
/** \brief Returns a reference to the feature measurement
**/
virtual const Eigen::VectorXs& getMeasurement() const override
......
......@@ -75,16 +75,6 @@ class ConstraintPointToLine2D: public ConstraintAutodiff<ConstraintPointToLine2D
template <typename T>
bool operator ()(const T* const _robotP, const T* const _robotO, const T* const _landmarkOriginPosition, const T* const _landmarkOriginOrientation, const T* const _landmarkPoint, const T* const _landmarkPointAux, T* _residuals) const;
/** \brief Returns the jacobians computation method
*
* Returns the jacobians computation method
*
**/
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
/** \brief Returns a reference to the feature measurement
**/
virtual const Eigen::VectorXs& getMeasurement() const override
......
......@@ -30,16 +30,6 @@ class ConstraintPose2D: public ConstraintAutodiff<ConstraintPose2D,3,2,1>
template<typename T>
bool operator ()(const T* const _p, const T* const _o, T* _residuals) const;
/** \brief Returns the jacobians computation method
*
* Returns the jacobians computation method
*
**/
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
};
template<typename T>
......
......@@ -28,11 +28,6 @@ class ConstraintPose3D: public ConstraintAutodiff<ConstraintPose3D,6,3,4>
template<typename T>
bool operator ()(const T* const _p, const T* const _o, T* _residuals) const;
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
};
template<typename T>
......
......@@ -35,11 +35,6 @@ class ConstraintQuaternionAbsolute: public ConstraintAutodiff<ConstraintQuaterni
template<typename T>
bool operator ()(const T* const _o, T* _residuals) const;
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
};
template<typename T>
......
......@@ -91,12 +91,6 @@ class ConstraintRelative2DAnalytic : public ConstraintAnalytic
**/
virtual void evaluatePureJacobians(std::vector<Eigen::MatrixXs>& jacobians) const override;
/** \brief Returns the jacobians computation method
**/
virtual JacobianMethod getJacobianMethod() const override
{
return JAC_AUTO;
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment