31 if (vel >
sqrt(std::fabs(Se) * accl))
33 vel =
sqrt(std::fabs(Se) * accl);
63 std::vector<double> array;
65 double direction = se/std::fabs(se);
73 array.push_back(direction * (0.5*accl*
pow((t_ipo*i), 2)));
78 array.push_back(direction *(pt.
vel*(t_ipo*i) - 0.5*
pow(pt.
vel, 2)/accl));
83 array.push_back(direction * (pt.
vel * pt.
tv - 0.5 * accl *
pow(pt.
te-(t_ipo*i), 2)));
const cob_cartesian_controller::CartesianActionStruct & params_
#define MIN_VELOCITY_THRESHOLD
virtual bool getProfileTimings(double Se, double te, bool calcMaxTe, cob_cartesian_controller::ProfileTimings &pt)
virtual std::vector< double > getTrajectory(double se, cob_cartesian_controller::ProfileTimings pt)
double roundUpToMultiplier(const double numberToRound, const double multiplier)
INLINE Rall1d< T, V, S > sqrt(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > pow(const Rall1d< T, V, S > &arg, double m)