Cubic Hermite spline.
More...
#include <CubicHermiteSpline.h>
|
| | CubicHermiteSpline (int dim, const std::map< double, std::pair< T, T >> &points={}) |
| | Constructor. More...
|
| |
| const std::map< double, std::pair< T, T > > & | points () const noexcept |
| | Access points. More...
|
| |
| void | clearPoints () |
| | Clear points. More...
|
| |
| void | appendPoint (const std::pair< double, std::pair< T, T >> &point) |
| | Add point. More...
|
| |
| void | calcCoeff () |
| | Calculate coefficients. More...
|
| |
| virtual T | operator() (double t) const override |
| | Evaluate function value. More...
|
| |
| virtual T | derivative (double t, int order=1) const override |
| | Evaluate function derivative value. More...
|
| |
| void | calcMonotoneVelocity (bool keepStartVel=false, bool keepEndVel=false) |
| | Overwrite the velocity with keeping the time and position for making cubic Hermite spline monotone. More...
|
| |
| | PiecewiseFunc () |
| | Constructor. More...
|
| |
| virtual size_t | index (double t) const |
| | Get the index of piecewise functions. More...
|
| |
| virtual double | domainLowerLimit () const override |
| | Get lower limit of domain. More...
|
| |
| virtual double | domainUpperLimit () const override |
| | Get upper limit of domain. More...
|
| |
| void | clearFuncs () |
| | Clear function. More...
|
| |
| void | appendFunc (double t, std::shared_ptr< Func< T >> func) |
| | Add function. More...
|
| |
| void | setDomainLowerLimit (double t) |
| | Set lower limit of domain. More...
|
| |
| | Func () |
| | Constructor. More...
|
| |
|
| int | dim_ |
| | Dimension of value. More...
|
| |
| std::map< double, std::pair< T, T > > | points_ |
| | Times, positions, and velocities in way points. More...
|
| |
| std::map< double, std::shared_ptr< Func< T > > > | funcs_ |
| | Map of upper bound of domain and function. More...
|
| |
| double | tLowerLimit_ = std::numeric_limits<double>::lowest() |
| | Lower limit of domain of this function. More...
|
| |
template<class T>
class TrajColl::CubicHermiteSpline< T >
Cubic Hermite spline.
- Template Parameters
-
Definition at line 13 of file CubicHermiteSpline.h.
◆ CubicHermiteSpline()
Constructor.
- Parameters
-
| dim | dimension of value |
| points | times, positions, and velocities in way points |
Definition at line 20 of file CubicHermiteSpline.h.
◆ appendPoint()
Add point.
- Parameters
-
| point | time, position, and velocity of way point |
Definition at line 37 of file CubicHermiteSpline.h.
◆ argSegment()
◆ calcCoeff()
◆ calcMonotoneVelocity()
◆ clearPoints()
◆ derivative()
◆ operator()()
◆ points()
◆ dim_
◆ points_
The documentation for this class was generated from the following file:
- /home/runner/work/TrajectoryCollection/TrajectoryCollection/colcon_ws/src/isri-aist/TrajectoryCollection/include/TrajColl/CubicHermiteSpline.h