30 #include <mc_rbdyn/rpy_utils.h> 32 #include <SpaceVecAlg/SpaceVecAlg> 42 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
60 inline sva::PTransformd
operator*(
const sva::PTransformd & X_0_a)
const 71 return {mc_rbdyn::rpyToMat(0., 0.,
theta), Eigen::Vector3d{
x,
y, 0.}};
79 inline Eigen::Vector2d
pos()
const 89 inline Eigen::Vector2d
ori()
const 111 return {
x,
y,
theta * 180. / M_PI};
Eigen::Vector2d pos() const
Get 2D position.
sva::PTransformd operator*(const sva::PTransformd &X_0_a) const
Apply SE2 transform in horizontal plane of an SE3 frame.
double y
Second translation coordinate.
sva::PTransformd asPTransform() const
Convert to Plucker transform.
Eigen::Vector3d vectorDegrees() const
Get transform in vector form, with the angle expressed in degrees.
double x
First translation coordinate.
Utility functions and classes.
double theta
Orientation coordinate.
Eigen::Vector2d ori() const
Get 2D orientation vector.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW SE2d(double x=0., double y=0., double theta=0.)
Initialize a new SE2 transform.
Eigen::Vector3d vector()
Get transform in vector form.