34 #ifndef OPEN_WALKER_CORE_ROTATION3_REF_H 35 #define OPEN_WALKER_CORE_ROTATION3_REF_H 52 template <
typename _Derived>
56 typedef _Derived Derived;
73 explicit Rotation3Ref(Derived& ref,
int startRow = 0,
int startCol = 0) :
74 Base(ref, startRow, startCol)
81 using Base::operator=;
86 using Base::operator*;
91 template <
typename OtherDerived>
94 *
this = r.toRotationMatrix();
132 operator tf::Quaternion()
const 135 matrixEigenToQuaternionTF(*
this, q);
143 operator geometry_msgs::Quaternion()
const 145 geometry_msgs::Quaternion q;
154 operator tf::Matrix3x3()
const 167 return static_cast<tf::Quaternion
>(*this);
176 return static_cast<geometry_msgs::Quaternion
>(*this);
185 return static_cast<tf::Matrix3x3
>(*this);
197 #endif // OPEN_WALKER_CORE_ROTATION3_REF_H tf::Quaternion toQuaternionTF()
Conversion to tf::Quaternion.
Definition: rotation3_ref.h:165
void matrixTFToEigenMatrix(const tf::Matrix3x3 &t, Eigen::MatrixBase< _Derived > &e)
Converts a tf::Matrix3x3 into an Eigen::Matrix3.
Definition: conversions.h:82
void matrixEigenToQuaternionMsg(const Eigen::MatrixBase< _Derived > &e, geometry_msgs::Quaternion &t)
Converts an Eigen::Matrix3 to a geometry_msgs::Quaternion.
Definition: conversions.h:213
geometry_msgs::Quaternion toQuaternionMsg()
Conversion to geometry_msgs::Quaternion.
Definition: rotation3_ref.h:174
Rotation3Ref & operator=(const Eigen::RotationBase< OtherDerived, 3 > &r)
Assignment of Eigen::RotationBase.
Definition: rotation3_ref.h:92
void quaternionMsgToEigenMatrix(const geometry_msgs::Quaternion &t, Eigen::MatrixBase< _Derived > &e)
Converts a geometry_msgs::Quaternion into an Eigen::Matrix3.
Definition: conversions.h:184
Contains global conversion functions.
Definition: angular_acceleration.h:39
void operator=(const geometry_msgs::Quaternion &q)
Assignment of geometry_msgs::Quaternion.
Definition: rotation3_ref.h:113
void matrixEigenToMatrixTF(const Eigen::MatrixBase< _Derived > &e, tf::Matrix3x3 &t)
Converts an Eigen::MatrixBase into a tf::Matrix3x3.
Definition: conversions.h:111
The Rotation3Ref class.
Definition: rotation3_ref.h:53
tf::Matrix3x3 toMatrixTF()
Conversion to tf::Matrix3x3.
Definition: rotation3_ref.h:183
The MatrixRef class.
Definition: matrix_ref.h:51
void operator=(const tf::Matrix3x3 &R)
Assignment of tf::Matrix3x3.
Definition: rotation3_ref.h:123
void quaternionTFToEigenMatrix(const tf::Quaternion &t, Eigen::MatrixBase< _Derived > &e)
Converts a tf::Quaternion into an Eigen::MatrixBase.
Definition: conversions.h:135
Rotation3Ref(Derived &ref, int startRow=0, int startCol=0)
Default Constructor.
Definition: rotation3_ref.h:73
void operator=(const tf::Quaternion &q)
Assignment of tf::Quaternion.
Definition: rotation3_ref.h:103