|
KDL 1.5.3
|
A Trapezoidal VelocityProfile implementation. More...
#include <src/velocityprofile_trap.hpp>


Public Member Functions | |
| VelocityProfile_Trap (double _maxvel=0, double _maxacc=0) | |
| virtual void | SetProfile (double pos1, double pos2) |
| virtual void | SetProfileDuration (double pos1, double pos2, double newduration) |
| virtual void | SetProfileVelocity (double pos1, double pos2, double newvelocity) |
| Compute trapezoidal profile at a given fraction of max velocity. | |
| virtual void | SetMax (double _maxvel, double _maxacc) |
| virtual double | Duration () const |
| virtual double | Pos (double time) const |
| virtual double | Vel (double time) const |
| virtual double | Acc (double time) const |
| virtual void | Write (std::ostream &os) const |
| virtual VelocityProfile * | Clone () const |
| virtual | ~VelocityProfile_Trap () |
Static Public Member Functions | |
| static VelocityProfile * | Read (std::istream &is) |
Private Attributes | |
| double | a1 |
| double | a2 |
| double | a3 |
| double | b1 |
| double | b2 |
| double | b3 |
| double | c1 |
| double | c2 |
| double | c3 |
| double | duration |
| double | t1 |
| double | t2 |
| double | maxvel |
| double | maxacc |
| double | startpos |
| double | endpos |
A Trapezoidal VelocityProfile implementation.
| KDL::VelocityProfile_Trap::VelocityProfile_Trap | ( | double | _maxvel = 0, |
| double | _maxacc = 0 ) |
|
virtual |
|
virtual |
|
virtual |
Implements KDL::VelocityProfile.
References duration, endpos, maxacc, maxvel, SetProfileDuration(), startpos, and VelocityProfile_Trap().
|
virtual |
Implements KDL::VelocityProfile.
References duration.
|
virtual |
|
staticinherited |
Referenced by KDL::Trajectory::Read().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Compute trapezoidal profile at a given fraction of max velocity.
| pos1 | Position to start from |
| pos2 | Position to end at |
| newvelocity | Fraction of max velocity to use during the non-ramp, flat-velocity part of the profile. |
| KDL::epsilon | <= newvelocity <= 1.0 (forcibly clamped to this range internally) |
References a2, a3, b2, b3, c2, c3, duration, SetProfile(), t1, and t2.
|
virtual |
|
virtual |
Implements KDL::VelocityProfile.
|
private |
Referenced by Pos(), SetProfile(), and VelocityProfile_Trap().
|
private |
Referenced by Pos(), SetProfile(), SetProfileDuration(), SetProfileVelocity(), Vel(), and VelocityProfile_Trap().
|
private |
Referenced by Acc(), Pos(), SetProfile(), SetProfileDuration(), SetProfileVelocity(), Vel(), and VelocityProfile_Trap().
|
private |
Referenced by Pos(), SetProfile(), and VelocityProfile_Trap().
|
private |
Referenced by Pos(), SetProfile(), SetProfileDuration(), SetProfileVelocity(), Vel(), and VelocityProfile_Trap().
|
private |
Referenced by Acc(), Pos(), SetProfile(), SetProfileDuration(), SetProfileVelocity(), Vel(), and VelocityProfile_Trap().
|
private |
Referenced by Pos(), SetProfile(), and VelocityProfile_Trap().
|
private |
Referenced by Pos(), SetProfile(), SetProfileDuration(), SetProfileVelocity(), Vel(), and VelocityProfile_Trap().
|
private |
Referenced by Acc(), Pos(), SetProfile(), SetProfileDuration(), SetProfileVelocity(), Vel(), and VelocityProfile_Trap().
|
private |
Referenced by Acc(), Clone(), Duration(), Pos(), SetProfile(), SetProfileDuration(), SetProfileVelocity(), Vel(), and VelocityProfile_Trap().
|
private |
Referenced by Clone(), Pos(), SetProfile(), and VelocityProfile_Trap().
|
private |
Referenced by Clone(), SetMax(), SetProfile(), VelocityProfile_Trap(), and Write().
|
private |
Referenced by Clone(), SetMax(), SetProfile(), VelocityProfile_Trap(), and Write().
|
private |
Referenced by Clone(), Pos(), SetProfile(), and VelocityProfile_Trap().
|
private |
Referenced by Acc(), Pos(), SetProfile(), SetProfileDuration(), SetProfileVelocity(), Vel(), and VelocityProfile_Trap().
|
private |
Referenced by Acc(), Pos(), SetProfile(), SetProfileDuration(), SetProfileVelocity(), Vel(), and VelocityProfile_Trap().