bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::trajectory::QuinticTimeScaling Class Reference

The quintic polynomial that starts and ends at rest with no acceleration, \(s(t) = 10\tau^3 - 15\tau^4 + 6\tau^5\). More...

#include <time_scaling.h>

Inheritance diagram for bitsim::trajectory::QuinticTimeScaling:
Collaboration diagram for bitsim::trajectory::QuinticTimeScaling:

Public Member Functions

 QuinticTimeScaling (real_t duration)
real_t s (real_t t) const override
 s(t); 0 before the start and 1 after the end
real_t ds (real_t t) const override
 \(\dot s(t)\) [1/s]
real_t dds (real_t t) const override
 \(\ddot s(t)\) [1/s^2]
Public Member Functions inherited from bitsim::trajectory::TimeScaling
virtual ~TimeScaling ()=default
real_t duration () const noexcept
 The duration T [s].

Additional Inherited Members

Protected Member Functions inherited from bitsim::trajectory::TimeScaling
 TimeScaling (real_t duration)
real_t clamp_ (real_t t) const noexcept
Protected Attributes inherited from bitsim::trajectory::TimeScaling
real_t T_

Detailed Description

The quintic polynomial that starts and ends at rest with no acceleration, \(s(t) = 10\tau^3 - 15\tau^4 + 6\tau^5\).

Velocity and acceleration are zero at both ends, so the motion starts and stops smoothly. The price is a higher peak velocity, \(1.875/T\) against the cubic's \(1.5/T\).

Constructor & Destructor Documentation

◆ QuinticTimeScaling()

bitsim::trajectory::QuinticTimeScaling::QuinticTimeScaling ( real_t duration)
inlineexplicit

Member Function Documentation

◆ dds()

real_t bitsim::trajectory::QuinticTimeScaling::dds ( real_t t) const
overridevirtual

\(\ddot s(t)\) [1/s^2]

Implements bitsim::trajectory::TimeScaling.

◆ ds()

real_t bitsim::trajectory::QuinticTimeScaling::ds ( real_t t) const
overridevirtual

\(\dot s(t)\) [1/s]

Implements bitsim::trajectory::TimeScaling.

◆ s()

real_t bitsim::trajectory::QuinticTimeScaling::s ( real_t t) const
overridevirtual

s(t); 0 before the start and 1 after the end

Implements bitsim::trajectory::TimeScaling.


The documentation for this class was generated from the following files: