34 #ifndef OPEN_WALKER_CORE_VECTOR3_REF_H 35 #define OPEN_WALKER_CORE_VECTOR3_REF_H 52 template <
typename _Derived>
56 typedef _Derived Derived;
73 explicit Vector3Ref(Derived& ref,
int startRow = 0,
int startCol = 0) : Base(ref, startRow, startCol)
80 using Base::operator=;
109 operator tf::Vector3()
const 119 operator geometry_msgs::Point()
const 121 geometry_msgs::Point x;
129 operator geometry_msgs::Vector3()
const 131 geometry_msgs::Vector3 x;
141 return static_cast<tf::Vector3
>(*this);
149 return static_cast<geometry_msgs::Point
>(*this);
157 return static_cast<geometry_msgs::Vector3
>(*this);
169 #endif // OPEN_WALKER_CORE_VECTOR3_REF_H The VectorRef class.
Definition: vector_ref.h:51
geometry_msgs::Point toPointMsg() const
Conversion to geometry_msgs::Point.
Definition: vector3_ref.h:147
void vector3EigenToVector3TF(const Eigen::MatrixBase< _Derived > &e, tf::Vector3 &t)
Converts an Eigen::EigenBase into a tf::Vector3.
Definition: conversions.h:292
void vector3MsgToEigenVector3(const geometry_msgs::Vector3 &t, Eigen::MatrixBase< _Derived > &e)
Converts a geometry_msgs::Vector3 into an Eigen::EigenBase.
Definition: conversions.h:280
void vector3EigenToVector3Msg(const Eigen::MatrixBase< _Derived > &e, geometry_msgs::Vector3 &t)
Converts an Eigen::EigenBase to a geometry_msgs::Point.
Definition: conversions.h:247
geometry_msgs::Vector3 toVector3Msg() const
Conversion to geometry_msgs::Point.
Definition: vector3_ref.h:155
void pointMsgToEigenVector3(const geometry_msgs::Point &t, Eigen::MatrixBase< _Derived > &e)
Converts a geometry_msgs::Point into an Eigen::EigenBase.
Definition: conversions.h:263
void vector3EigenToPointMsg(const Eigen::MatrixBase< _Derived > &e, geometry_msgs::Point &t)
Converts an Eigen::EigenBase to a geometry_msgs::Point.
Definition: conversions.h:229
The Vector3Ref class.
Definition: vector3_ref.h:53
void operator=(const geometry_msgs::Vector3 &x)
Assignment of geometry_msgs::Vector3.
Definition: vector3_ref.h:93
void operator=(const tf::Vector3 &x)
Assignment of tf::Vector3.
Definition: vector3_ref.h:85
void operator=(const geometry_msgs::Point &x)
Assignment of geometry_msgs::Point.
Definition: vector3_ref.h:101
Contains global conversion functions.
tf::Vector3 toVectorTF() const
Conversion to tf::Vector3.
Definition: vector3_ref.h:139
Definition: angular_acceleration.h:39
Vector3Ref(Derived &ref, int startRow=0, int startCol=0)
Default Constructor.
Definition: vector3_ref.h:73
void vector3TFToVector3Eigen(const tf::Vector3 &t, Eigen::MatrixBase< _Derived > &e)
Converts an tf::Vector3 into Eigen::EigenBase.
Definition: conversions.h:303