34 #ifndef OPEN_WALKER_CORE_CARTESIAN_POSITION_REF_H 35 #define OPEN_WALKER_CORE_CARTESIAN_POSITION_REF_H 39 #include <geometry_msgs/Pose.h> 55 template <
typename _Scalar>
57 public Eigen::Matrix<_Scalar, 7, 1>
60 typedef _Scalar Scalar;
61 typedef Eigen::Matrix<Scalar, 7, 1> Base;
62 typedef Eigen::Transform<Scalar, 3, Eigen::Affine> Transform;
100 template <
typename OtherDerived>
102 Base(other.derived())
120 const Scalar& qw,
const Scalar& qx,
const Scalar& qy,
const Scalar& qz)
146 template <
typename OtherDerived>
181 using Base::operator=;
217 template <
typename OtherDerived>
218 void operator=(
const Eigen::RotationBase<OtherDerived, 3>& R)
228 void operator=(
const typename Transform::TranslationType& t)
238 operator Transform()
const 247 operator tf::Transform()
const 256 operator geometry_msgs::Pose()
const 258 geometry_msgs::Pose X;
270 return static_cast<Transform
>(*this);
279 return static_cast<tf::Transform
>(*this);
288 return static_cast<geometry_msgs::Pose
>(*this);
328 std::ostringstream out;
329 out << this->transpose();
336 #endif // OPEN_WALKER_CORE_CARTESIAN_POSITION_REF_H The CartesianPosition class.
Definition: cartesian_position.h:56
static const CartesianPosition & Identity()
Construct as Identity.
Definition: cartesian_position.h:69
LinearPositionRef< Base > position()
access to position part
Definition: cartesian_position.h:294
CartesianPosition(const Eigen::RotationBase< OtherDerived, 3 > &other)
Copy constructor from Eigen::RotationBase.
Definition: cartesian_position.h:147
The LinearPositionRef class.
Definition: linear_position_ref.h:52
void operator=(const typename Transform::TranslationType &t)
Assignment form Eigen::Translation.
Definition: cartesian_position.h:228
void operator=(const Eigen::RotationBase< OtherDerived, 3 > &R)
Assignment form Eigen::RotationBase.
Definition: cartesian_position.h:218
void setIdentity()
set to identity.
Definition: cartesian_position.h:173
geometry_msgs::Pose toPoseMsg()
Conversion to geometry_msgs::Pose.
Definition: cartesian_position.h:286
CartesianPosition(const Eigen::EigenBase< OtherDerived > &other)
Copy constructor.
Definition: cartesian_position.h:101
CartesianPosition(const geometry_msgs::Pose &other)
Copy constructor from geometry_msgs::Pose.
Definition: cartesian_position.h:165
void operator=(const Transform &T)
Assignment form Eigen::Transformation.
Definition: cartesian_position.h:187
Definition: angular_acceleration.h:39
The AngularPositionRef class.
Definition: angular_position_ref.h:56
AngularPositionRef< Base > orientation()
access to orientation part
Definition: cartesian_position.h:310
Transform toTransformEigen()
Conversion to Eigen::Transformation.
Definition: cartesian_position.h:268
void operator=(const geometry_msgs::Pose &T)
Assignment form geometry_msgs::Pose.
Definition: cartesian_position.h:207
AngularPositionRef< const Base > orientation() const
const access to orientation part
Definition: cartesian_position.h:318
CartesianPosition(const tf::Transform &other)
Copy constructor from tf::Transform.
Definition: cartesian_position.h:156
void operator=(const tf::Transform &T)
Assignment form tf::Transform.
Definition: cartesian_position.h:197
tf::Transform toTransformTf()
Conversion to tf::Transform.
Definition: cartesian_position.h:277
CartesianPosition(const typename Transform::TranslationType &other)
Copy constructor from Eigen::Translation.
Definition: cartesian_position.h:136
CartesianPosition(const Scalar &x, const Scalar &y, const Scalar &z, const Scalar &qw, const Scalar &qx, const Scalar &qy, const Scalar &qz)
Constructor from Scalars.
Definition: cartesian_position.h:119
CartesianPosition(const Transform &other)
Copy constructor from Eigen::Transform.
Definition: cartesian_position.h:111
LinearPositionRef< const Base > position() const
const access to position part
Definition: cartesian_position.h:302
static const CartesianPosition & Default()
Construct as Default.
Definition: cartesian_position.h:80
CartesianPosition()
Default Constructor.
Definition: cartesian_position.h:89
std::string toString() const
Conversion to std::string.
Definition: cartesian_position.h:326