Skip to content

Commit

Permalink
Estimator.hpp : return Eigen::Ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ManifoldFR committed Mar 20, 2024
1 parent 899b0fa commit cdc919b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
22 changes: 11 additions & 11 deletions include/qrw/Estimator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ class Estimator {

void initializeIMUYaw() { initialized_ = false; };

VectorN getQEstimate() { return qEstimate_; }
VectorN getVEstimate() { return vEstimate_; }
VectorN getVSecurity() { return vSecurity_; }
VectorN getFeetStatus() { return feetStatus_; }
ConstVecRefN getQEstimate() { return qEstimate_; }
ConstVecRefN getVEstimate() { return vEstimate_; }
ConstVecRefN getVSecurity() { return vSecurity_; }
ConstVecRefN getFeetStatus() { return feetStatus_; }
Vector3 getBaseVelocityFK() { return baseVelocityFK_; }
Vector3 getBasePositionFK() { return basePositionFK_; }
Vector3 getBBaseVelocity() { return b_baseVelocity_; }
Expand All @@ -74,13 +74,13 @@ class Estimator {
Vector3 getFilterPosAlpha() { return positionFilter_.getAlpha(); }
Vector3 getFilterPosFiltX() { return positionFilter_.getFilteredX(); }

VectorN getQReference() { return qRef_; }
VectorN getVReference() { return vRef_; }
VectorN getBaseVelRef() { return baseVelRef_; }
VectorN getBaseAccRef() { return baseAccRef_; }
VectorN getHV() { return h_v_; }
VectorN getVFiltered() { return vFiltered_; }
VectorN getHVFiltered() { return h_vFiltered_; }
ConstVecRefN getQReference() { return qRef_; }
ConstVecRefN getVReference() { return vRef_; }
ConstVecRefN getBaseVelRef() { return baseVelRef_; }
ConstVecRefN getBaseAccRef() { return baseAccRef_; }
ConstVecRefN getHV() { return h_v_; }
ConstVecRefN getVFiltered() { return vFiltered_; }
ConstVecRefN getHVFiltered() { return h_vFiltered_; }
Matrix3 getoRh() { return oRh_; }
Matrix3 gethRb() { return hRb_; }
Vector3 getoTh() { return oTh_; }
Expand Down
1 change: 1 addition & 0 deletions include/qrw/Types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ using Matrix3N = Eigen::Matrix<Scalar, 3, Eigen::Dynamic>;
using Matrix6N = Eigen::Matrix<Scalar, 6, Eigen::Dynamic>;
using Matrix12N = Eigen::Matrix<Scalar, 12, Eigen::Dynamic>;
using MatrixN = Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic>;
using ConstMatRefN = Eigen::Ref<const MatrixN>;
using MatrixNi = Eigen::Matrix<int, Eigen::Dynamic, Eigen::Dynamic>;

#endif // TYPES_H_INCLUDED

0 comments on commit cdc919b

Please sign in to comment.