|
| | TrapezoidalVelocityProfile (double maxVel, double maxAccel) |
| | Construct a new velocity profile object.
|
|
void | reset () |
| | Reset the profile and clear any calculated profile.
|
| bool | hasTarget () const |
| | Check if a profile has been calculated.
|
| void | setTarget (robot::types::datatime_t currTime, const std::array< double, dim > &startPos, const std::array< double, dim > &endPos) |
| | Calculate a profile, assuming the mechanism begins and ends at rest.
|
| void | setTarget (robot::types::datatime_t currTime, const navtypes::Vectord< dim > &startPos, const navtypes::Vectord< dim > &endPos) |
| | Calculate a profile, assuming the mechanism begins and ends at rest.
|
| navtypes::Vectord< dim > | getCommand (robot::types::datatime_t currTime) const |
| | Get the target position.
|
| std::optional< util::dseconds > | getTotalTime () const |
| | Get the total time it takes to perform the profile.
|
template<int dim>
class control::TrapezoidalVelocityProfile< dim >
Trapezoidal velocity profile in multiple dimensions.
Motion is coordinated so that all dimensions arrive at the goal at the same time.
- Template Parameters
-
| dim | The number of dimensions that are controlled by this profile. |