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

How fast to go along a path: the share s(t) of the path done at time t, from s(0) = 0 to s(T) = 1, with its rates \(\dot s\) and \(\ddot s\). More...

#include <time_scaling.h>

Inheritance diagram for bitsim::trajectory::TimeScaling:

Public Member Functions

virtual ~TimeScaling ()=default
real_t duration () const noexcept
 The duration T [s].
virtual real_t s (real_t t) const =0
 s(t); 0 before the start and 1 after the end
virtual real_t ds (real_t t) const =0
 \(\dot s(t)\) [1/s]
virtual real_t dds (real_t t) const =0
 \(\ddot s(t)\) [1/s^2]

Protected Member Functions

 TimeScaling (real_t duration)
real_t clamp_ (real_t t) const noexcept

Protected Attributes

real_t T_

Detailed Description

How fast to go along a path: the share s(t) of the path done at time t, from s(0) = 0 to s(T) = 1, with its rates \(\dot s\) and \(\ddot s\).

A point to point motion from \(q_0\) to \(q_1\) is then \(q(t) = q_0 + s(t)(q_1 - q_0)\), with velocity \(\dot s(t)(q_1 - q_0)\) and acceleration \(\ddot s(t)(q_1 - q_0)\): the path is fixed, and the time scaling says how it is timed.

Constructor & Destructor Documentation

◆ ~TimeScaling()

virtual bitsim::trajectory::TimeScaling::~TimeScaling ( )
virtualdefault

◆ TimeScaling()

bitsim::trajectory::TimeScaling::TimeScaling ( real_t duration)
explicitprotected

Member Function Documentation

◆ clamp_()

real_t bitsim::trajectory::TimeScaling::clamp_ ( real_t t) const
protectednoexcept

◆ dds()

virtual real_t bitsim::trajectory::TimeScaling::dds ( real_t t) const
pure virtual

◆ ds()

virtual real_t bitsim::trajectory::TimeScaling::ds ( real_t t) const
pure virtual

◆ duration()

real_t bitsim::trajectory::TimeScaling::duration ( ) const
inlinenoexcept

The duration T [s].

◆ s()

virtual real_t bitsim::trajectory::TimeScaling::s ( real_t t) const
pure virtual

Member Data Documentation

◆ T_

real_t bitsim::trajectory::TimeScaling::T_
protected

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