Curves
A library for curves generation.
curves::spline_traits::spline_rep< double, 2 > Struct Template Reference

#include <polynomial_splines_traits.hpp>

Public Types

using TimeVectorType = std::array< double, numCoefficients >
 
using SplineCoefficients = std::array< double, numCoefficients >
 

Static Public Member Functions

static TimeVectorType tau (double tk) noexcept
 
static TimeVectorType dtau (double tk) noexcept
 
static TimeVectorType ddtau (double tk) noexcept
 
static bool compute (const SplineOptions &opts, SplineCoefficients &coefficients)
 Map initial pos, initial vel and final pos to spline coefficients. More...
 

Static Public Attributes

static constexpr unsigned int splineOrder = 2
 
static constexpr unsigned int numCoefficients = splineOrder+1
 
static constexpr TimeVectorType tauZero {{ 0.0, 0.0, 1.0 }}
 
static constexpr TimeVectorType dtauZero {{ 0.0, 1.0, 0.0 }}
 
static constexpr TimeVectorType ddtauZero {{ 2.0, 0.0, 0.0 }}
 

Detailed Description

template<>
struct curves::spline_traits::spline_rep< double, 2 >

Definition at line 125 of file polynomial_splines_traits.hpp.

Member Typedef Documentation

using curves::spline_traits::spline_rep< double, 2 >::SplineCoefficients = std::array<double, numCoefficients>

Definition at line 131 of file polynomial_splines_traits.hpp.

using curves::spline_traits::spline_rep< double, 2 >::TimeVectorType = std::array<double, numCoefficients>

Definition at line 130 of file polynomial_splines_traits.hpp.

Member Function Documentation

static bool curves::spline_traits::spline_rep< double, 2 >::compute ( const SplineOptions opts,
SplineCoefficients coefficients 
)
inlinestatic

Map initial pos, initial vel and final pos to spline coefficients.

Definition at line 150 of file polynomial_splines_traits.hpp.

static TimeVectorType curves::spline_traits::spline_rep< double, 2 >::ddtau ( double  tk)
inlinestaticnoexcept

Definition at line 141 of file polynomial_splines_traits.hpp.

static TimeVectorType curves::spline_traits::spline_rep< double, 2 >::dtau ( double  tk)
inlinestaticnoexcept

Definition at line 137 of file polynomial_splines_traits.hpp.

static TimeVectorType curves::spline_traits::spline_rep< double, 2 >::tau ( double  tk)
inlinestaticnoexcept

Definition at line 133 of file polynomial_splines_traits.hpp.

Member Data Documentation

constexpr TimeVectorType curves::spline_traits::spline_rep< double, 2 >::ddtauZero {{ 2.0, 0.0, 0.0 }}
static

Definition at line 147 of file polynomial_splines_traits.hpp.

constexpr TimeVectorType curves::spline_traits::spline_rep< double, 2 >::dtauZero {{ 0.0, 1.0, 0.0 }}
static

Definition at line 146 of file polynomial_splines_traits.hpp.

constexpr unsigned int curves::spline_traits::spline_rep< double, 2 >::numCoefficients = splineOrder+1
static

Definition at line 128 of file polynomial_splines_traits.hpp.

constexpr unsigned int curves::spline_traits::spline_rep< double, 2 >::splineOrder = 2
static

Definition at line 127 of file polynomial_splines_traits.hpp.

constexpr TimeVectorType curves::spline_traits::spline_rep< double, 2 >::tauZero {{ 0.0, 0.0, 1.0 }}
static

Definition at line 145 of file polynomial_splines_traits.hpp.


The documentation for this struct was generated from the following file: