Public Member Functions | Protected Types | Private Member Functions | List of all members
tuw::ParamFuncsDistBaseCRTP< TDerived > Class Template Reference

#include <param_func_dist.hpp>

Public Member Functions

NumType computeS () const
 
void computeS2TLattice (const std::vector< NumType > &_sLattice, std::vector< NumType > &_tLattice)
 Computes arc parametrization lattice given a distance-parametrized lattice. More...
 
void computeS2TLattice (const NumType &_arc0, const NumType &_ds, std::vector< NumType > &_tLattice)
 Computes arc parametrization lattice given an inital arc and distance parametrized sampling interval. More...
 
NumType computeT (const NumType &_s, const EvalArcGuarantee &_eAG=EvalArcGuarantee::NONE)
 
ParamFuncsDistBaseCRTPoperator= (const ParamFuncsDistBaseCRTP &)=default
 
ParamFuncsDistBaseCRTPoperator= (ParamFuncsDistBaseCRTP &&)=delete
 
 ParamFuncsDistBaseCRTP ()=default
 
 ParamFuncsDistBaseCRTP (const ParamFuncsDistBaseCRTP &)=default
 
 ParamFuncsDistBaseCRTP (ParamFuncsDistBaseCRTP &&)=delete
 
void setDistCfMode (TraveledDistCfMode _distCfMode, const std::vector< std::size_t > &_distRelFuncIdx)
 Initializer of the Closed form distance computation mode. More...
 
void setEvalDist (const NumType &_funcsDistEval, const EvalArcGuarantee &_eAG=EvalArcGuarantee::NONE)
 Moves to evaluation arc at which the traveled distance _funcsDistEval is achieved. More...
 
 ~ParamFuncsDistBaseCRTP ()=default
 

Protected Types

using NumType = typename ParamFuncsDistBaseCRTPTraits< TDerived >::NumType
 

Private Member Functions

TDerived & thisDerived ()
 
const TDerived & thisDerived () const
 

Detailed Description

template<typename TDerived>
class tuw::ParamFuncsDistBaseCRTP< TDerived >

Definition at line 68 of file param_func_dist.hpp.

Member Typedef Documentation

template<typename TDerived>
using tuw::ParamFuncsDistBaseCRTP< TDerived >::NumType = typename ParamFuncsDistBaseCRTPTraits<TDerived>::NumType
protected

Definition at line 71 of file param_func_dist.hpp.

Constructor & Destructor Documentation

template<typename TDerived>
tuw::ParamFuncsDistBaseCRTP< TDerived >::ParamFuncsDistBaseCRTP ( )
default
template<typename TDerived>
tuw::ParamFuncsDistBaseCRTP< TDerived >::~ParamFuncsDistBaseCRTP ( )
default
template<typename TDerived>
tuw::ParamFuncsDistBaseCRTP< TDerived >::ParamFuncsDistBaseCRTP ( const ParamFuncsDistBaseCRTP< TDerived > &  )
default
template<typename TDerived>
tuw::ParamFuncsDistBaseCRTP< TDerived >::ParamFuncsDistBaseCRTP ( ParamFuncsDistBaseCRTP< TDerived > &&  )
delete

Member Function Documentation

template<typename TDerived>
NumType tuw::ParamFuncsDistBaseCRTP< TDerived >::computeS ( ) const
inline

Solves the equation $ \int_{0}^{evalArc\_}{ |v(\mathbf{p}, t)| } dt = \_s $ for _deltaS (evalArc_: time, _s: traveled distance, v: body linear velocity, $ \mathbf{p} $: parametrized control points).

Definition at line 107 of file param_func_dist.hpp.

template<typename TDerived>
void tuw::ParamFuncsDistBaseCRTP< TDerived >::computeS2TLattice ( const std::vector< NumType > &  _sLattice,
std::vector< NumType > &  _tLattice 
)
inline

Computes arc parametrization lattice given a distance-parametrized lattice.

Parameters
_sLatticeDistance-parametrized input lattice. It is assumed that the vector is monotonically increasing.
_tLatticeArc-parametrized output lattice.

Definition at line 123 of file param_func_dist.hpp.

template<typename TDerived>
void tuw::ParamFuncsDistBaseCRTP< TDerived >::computeS2TLattice ( const NumType _arc0,
const NumType _ds,
std::vector< NumType > &  _tLattice 
)
inline

Computes arc parametrization lattice given an inital arc and distance parametrized sampling interval.

The function computes the temporal lattice starting with s(_arc0) and ending with the maximum value of the arc parametrization.

Parameters
_sLatticeDistance-parametrized input lattice. It is assumed that the vector values are monotonically increasing.
_tLatticeArc-parametrized output lattice.

Definition at line 137 of file param_func_dist.hpp.

template<typename TDerived>
NumType tuw::ParamFuncsDistBaseCRTP< TDerived >::computeT ( const NumType _s,
const EvalArcGuarantee _eAG = EvalArcGuarantee::NONE 
)
inline

Solves the equation $ \int_{0}^{\_deltaT}{ |v(\mathbf{p}, t)| } dt = \_s $ for _s (evalArc_: time, _s: traveled distance, v: body linear velocity, $ \mathbf{p} $: parametrized control points).

Definition at line 114 of file param_func_dist.hpp.

template<typename TDerived>
ParamFuncsDistBaseCRTP& tuw::ParamFuncsDistBaseCRTP< TDerived >::operator= ( const ParamFuncsDistBaseCRTP< TDerived > &  )
default
template<typename TDerived>
ParamFuncsDistBaseCRTP& tuw::ParamFuncsDistBaseCRTP< TDerived >::operator= ( ParamFuncsDistBaseCRTP< TDerived > &&  )
delete
template<typename TDerived>
void tuw::ParamFuncsDistBaseCRTP< TDerived >::setDistCfMode ( TraveledDistCfMode  _distCfMode,
const std::vector< std::size_t > &  _distRelFuncIdx 
)
inline

Initializer of the Closed form distance computation mode.

Definition at line 94 of file param_func_dist.hpp.

template<typename TDerived>
void tuw::ParamFuncsDistBaseCRTP< TDerived >::setEvalDist ( const NumType _funcsDistEval,
const EvalArcGuarantee _eAG = EvalArcGuarantee::NONE 
)
inline

Moves to evaluation arc at which the traveled distance _funcsDistEval is achieved.

Definition at line 100 of file param_func_dist.hpp.

template<typename TDerived>
TDerived& tuw::ParamFuncsDistBaseCRTP< TDerived >::thisDerived ( )
inlineprivate

Definition at line 143 of file param_func_dist.hpp.

template<typename TDerived>
const TDerived& tuw::ParamFuncsDistBaseCRTP< TDerived >::thisDerived ( ) const
inlineprivate

Definition at line 149 of file param_func_dist.hpp.


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


tuw_control
Author(s): George Todoran
autogenerated on Mon Jun 10 2019 15:27:23