30 #include <mc_rtc/log/Logger.h> 32 #include <SpaceVecAlg/SpaceVecAlg> 44 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
78 void reset(
const sva::PTransformd & initPose,
const sva::PTransformd & targetPose,
double duration,
double height);
85 return sva::MotionVecd({0., 0., 0.}, accel_);
93 return pos_.z() - initPose_.translation().z();
103 landingDuration_ = duration;
113 landingPitch_ = pitch;
121 return sva::PTransformd(ori_, pos_);
129 return (duration_ - playback_);
139 takeoffDuration_ = duration;
149 takeoffOffset_ = offset;
159 takeoffPitch_ = pitch;
165 sva::MotionVecd
vel()
const 167 return sva::MotionVecd({0., 0., 0.}, vel_);
176 void updatePose(
double t);
183 void updateZ(
double t);
190 void updateXY(
double t);
197 void updatePitch(
double t);
200 Eigen::Quaterniond ori_;
201 Eigen::Vector3d accel_;
202 Eigen::Vector3d pos_;
203 Eigen::Vector3d takeoffOffset_ = Eigen::Vector3d::Zero();
204 Eigen::Vector3d vel_;
216 double landingDuration_ = 0.;
217 double landingPitch_ = 0.;
220 double takeoffDuration_ = 0.;
221 double takeoffPitch_ = 0.;
222 sva::PTransformd initPose_;
223 sva::PTransformd targetPose_;
224 sva::PTransformd touchdownPose_;
Polynomial whose argument is retimed to by .
Main controller namespace.