38 result << linear_velocity_, angular_velocity_;
58 template<
typename RotationMatrixType>
60 return Twist{rotation * linear_velocity_, rotation * angular_velocity_};
72 return Twist{linear_velocity_ + angular_velocity_.cross(link_translation), angular_velocity_};
81 return linear_velocity_;
90 return angular_velocity_;
94 Eigen::Vector3d linear_velocity_;
95 Eigen::Vector3d angular_velocity_;
102 template<
typename RotationMatrixType>
Twist of a frame.
Definition: twist.hpp:12
Vector6d vector_repr() const
Get the vector representation of the twist. It consists of the linear and angular velocities.
Definition: twist.hpp:36
static Twist fromVectorRepr(const Vector6d &vector_repr)
Definition: twist.hpp:27
Twist transformWith(const Affine &transformation) const
Transform the frame of the twist by applying the given affine transform.
Definition: twist.hpp:48
Eigen::Vector3d linear_velocity() const
Get the linear velocity.
Definition: twist.hpp:80
Twist transformWith(const RotationMatrixType &rotation) const
Transform the frame of the twist by applying the given rotation.
Definition: twist.hpp:59
Twist propagateThroughLink(const Eigen::Vector3d &link_translation) const
Propagate the twist through a link with the given translation. Hence, suppose this twist is the twist...
Definition: twist.hpp:71
Twist(Eigen::Vector3d linear_velocity=Eigen::Vector3d::Zero(), Eigen::Vector3d angular_velocity=Eigen::Vector3d::Zero())
Definition: twist.hpp:20
Twist(const Twist &twist)=default
Eigen::Vector3d angular_velocity() const
Get the angular velocity.
Definition: twist.hpp:89
Definition: gripper.cpp:3
CartesianState operator*(const Affine &transform, const CartesianState &cartesian_state)
Definition: cartesian_state.hpp:76
Eigen::Vector< double, 6 > Vector6d
Definition: types.hpp:8
Eigen::Affine3d Affine
Definition: types.hpp:13