Bsplines used for Z trajectory of stair steps.
More...
#include <Mathematics/Bsplines.hh>
|
| BSplinesFoot (double FT=1.0, double IP=0.0, double FP=0.0, std::vector< double > ToMP=std::vector< double >(), std::vector< double > MP=std::vector< double >(), double IS=0.0, double IA=0.0, double FS=0.0, double FA=0.0) |
|
| ~BSplinesFoot () |
|
void | SetParameters (double FT, double IP, double FP, std::vector< double > ToMP, std::vector< double > MP, double IS=0.0, double IA=0.0, double FS=0.0, double FA=0.0) |
|
void | SetParametersWithoutMPAndToMP (double FT, double IP, double FP, double IS, double IA, double FS, double FA) |
|
int | Compute (double t, double &x, double &dx, double &ddx) |
|
void | ComputeControlPointFrom2DataPoint () |
|
void | ComputeControlPointFrom3DataPoint () |
|
void | ComputeControlPointFrom4DataPoint () |
|
void | GetParameters (double &FT, double &IP, double &FP, std::vector< double > &ToMP, std::vector< double > &MP) |
|
std::vector< double > | MP () |
|
std::vector< double > | ToMP () |
|
double | FT () |
|
void | FT (double ft) |
|
double | IP () |
|
double | FP () |
|
void | SetParametersWithInitFinalPose (double FT, double IP, double FP, std::vector< double > &ToMP, std::vector< double > &MP) |
|
| Bsplines (long int degree) |
|
| ~Bsplines () |
|
void | GenerateDegree () |
|
Bsplines | DerivativeBsplines () |
|
int | ComputeBasisFunctions (double t) |
|
int | ComputeBasisFunctionsRecursively (double t, std::deque< double > &knot, unsigned int degree) |
|
double | Nij_t (int i, int j, double t, std::deque< double > &knot) |
|
double | ComputeBsplines (double t) |
|
void | SetDegree (long int degree) |
|
void | SetControlPoints (std::vector< double > &control_points) |
|
void | SetKnotVector (std::deque< double > &knot_vector) |
|
long int | GetDegree () const |
|
std::vector< double > | GetControlPoints () const |
|
std::deque< double > | GetKnotVector () const |
|
void | PrintKnotVector () const |
|
void | PrintControlPoints () const |
|
void | PrintDegree () const |
|
Bsplines used for Z trajectory of stair steps.
◆ BSplinesFoot()
BSplinesFoot::BSplinesFoot |
( |
double |
FT = 1.0 , |
|
|
double |
IP = 0.0 , |
|
|
double |
FP = 0.0 , |
|
|
std::vector< double > |
ToMP = std::vector<double>() , |
|
|
std::vector< double > |
MP = std::vector<double>() , |
|
|
double |
IS = 0.0 , |
|
|
double |
IA = 0.0 , |
|
|
double |
FS = 0.0 , |
|
|
double |
FA = 0.0 |
|
) |
| |
Constructor: FT: Final time FP: Final position ToMP : Time of Max Position MP : Max Position
◆ ~BSplinesFoot()
BSplinesFoot::~BSplinesFoot |
( |
| ) |
|
◆ Compute()
int BSplinesFoot::Compute |
( |
double |
t, |
|
|
double & |
x, |
|
|
double & |
dx, |
|
|
double & |
ddx |
|
) |
| |
Compute Position at time t
◆ ComputeControlPointFrom2DataPoint()
void BSplinesFoot::ComputeControlPointFrom2DataPoint |
( |
| ) |
|
Compute the control point position for an order 5 Bsplines. It also computes the control point of the derivative and the second derivatice of the BSplines.
◆ ComputeControlPointFrom3DataPoint()
void BSplinesFoot::ComputeControlPointFrom3DataPoint |
( |
| ) |
|
◆ ComputeControlPointFrom4DataPoint()
void BSplinesFoot::ComputeControlPointFrom4DataPoint |
( |
| ) |
|
◆ FP()
double PatternGeneratorJRL::BSplinesFoot::FP |
( |
| ) |
|
|
inline |
◆ FT() [1/2]
double PatternGeneratorJRL::BSplinesFoot::FT |
( |
| ) |
|
|
inline |
◆ FT() [2/2]
void PatternGeneratorJRL::BSplinesFoot::FT |
( |
double |
ft | ) |
|
|
inline |
◆ GetParameters()
void BSplinesFoot::GetParameters |
( |
double & |
FT, |
|
|
double & |
IP, |
|
|
double & |
FP, |
|
|
std::vector< double > & |
ToMP, |
|
|
std::vector< double > & |
MP |
|
) |
| |
◆ IP()
double PatternGeneratorJRL::BSplinesFoot::IP |
( |
| ) |
|
|
inline |
◆ MP()
std::vector<double> PatternGeneratorJRL::BSplinesFoot::MP |
( |
| ) |
|
|
inline |
◆ SetParameters()
void BSplinesFoot::SetParameters |
( |
double |
FT, |
|
|
double |
IP, |
|
|
double |
FP, |
|
|
std::vector< double > |
ToMP, |
|
|
std::vector< double > |
MP, |
|
|
double |
IS = 0.0 , |
|
|
double |
IA = 0.0 , |
|
|
double |
FS = 0.0 , |
|
|
double |
FA = 0.0 |
|
) |
| |
Set the parameters This method assumes implicitly a initial position initial speed and initial acceleration equal to zero. The same for final speed and final acceleration. Speed at Max Position is around zero. It generates knot vector and control point vector according to the input
◆ SetParametersWithInitFinalPose()
void BSplinesFoot::SetParametersWithInitFinalPose |
( |
double |
FT, |
|
|
double |
IP, |
|
|
double |
FP, |
|
|
std::vector< double > & |
ToMP, |
|
|
std::vector< double > & |
MP |
|
) |
| |
◆ SetParametersWithoutMPAndToMP()
void BSplinesFoot::SetParametersWithoutMPAndToMP |
( |
double |
FT, |
|
|
double |
IP, |
|
|
double |
FP, |
|
|
double |
IS, |
|
|
double |
IA, |
|
|
double |
FS, |
|
|
double |
FA |
|
) |
| |
◆ ToMP()
std::vector<double> PatternGeneratorJRL::BSplinesFoot::ToMP |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: