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

The cubic polynomial that starts and ends at rest, \(s(t) = 3\tau^2 - 2\tau^3\) with \(\tau = t / T\). More...

#include <time_scaling.h>

Inheritance diagram for bitsim::trajectory::CubicTimeScaling:
Collaboration diagram for bitsim::trajectory::CubicTimeScaling:

Public Member Functions

 CubicTimeScaling (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 cubic polynomial that starts and ends at rest, \(s(t) = 3\tau^2 - 2\tau^3\) with \(\tau = t / T\).

The velocity is zero at both ends, but the acceleration jumps from 0 to \(6/T^2\) at the start and back at the end: an infinite jerk, which shakes a real arm.

Constructor & Destructor Documentation

◆ CubicTimeScaling()

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

Member Function Documentation

◆ dds()

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

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

Implements bitsim::trajectory::TimeScaling.

◆ ds()

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

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

Implements bitsim::trajectory::TimeScaling.

◆ s()

real_t bitsim::trajectory::CubicTimeScaling::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: