Go to the documentation of this file.
51 maxvel(_maxvel),maxacc(_maxacc),starting(_starting) {}
101 double pos1,
double pos2,
double newduration)
104 double factor =
duration/newduration;
147 }
else if (time<
t1) {
149 }
else if (time<
t2) {
160 }
else if (time<
t1) {
162 }
else if (time<
t2) {
174 }
else if (time<
t1) {
176 }
else if (time<
t2) {
virtual double Pos(double time) const
virtual void SetProfile(double pos1, double pos2)
VelocityProfile_TrapHalf(double _maxvel=0, double _maxacc=0, bool _starting=true)
INLINE Rall1d< T, V, S > sqrt(const Rall1d< T, V, S > &arg)
virtual ~VelocityProfile_TrapHalf()
virtual double Acc(double time) const
virtual double Duration() const
virtual VelocityProfile * Clone() const
void SetMax(double _maxvel, double _maxacc, bool _starting)
virtual void Write(std::ostream &os) const
void PlanProfile1(double v, double a)
void PlanProfile2(double v, double a)
virtual double Vel(double time) const
virtual void SetProfileDuration(double pos1, double pos2, double newduration)