Spl_cubic Class Reference

#include <trajectory.h>

Inheritance diagram for Spl_cubic:

Spl_path List of all members.

Detailed Description

Natural cubic splines class.

Definition at line 91 of file trajectory.h.

Public Member Functions

 Spl_cubic ()
 Spl_cubic (const Matrix &pts)
 Constructor.
short interpolating (const Real t, ColumnVector &s)
 Interpolating the spline at time t. Extrapolating is not allowed.
short first_derivative (const Real t, ColumnVector &ds)
 Spline first derivative at time t.
short second_derivative (const Real t, ColumnVector &dds)
 Spline second derivative at time t.

Private Attributes

int nb_path
 Number of path, i.e: path in x,y,z nb_path=3.
Matrix Ak
Matrix Bk
Matrix Ck
Matrix Dk
RowVector tk
 Time at control points.
bool bad_data
 Status flag.


Constructor & Destructor Documentation

Spl_cubic::Spl_cubic ( const Matrix &  pts  ) 

Constructor.

Parameters:
pts,: Matrix containing the spline data.
The first line of the Matrix contain the sampling time Second line contain data (sk) to create spline i. Third " " i+1. on Nth line i+N.

The spline has the following form:

\[ s = A_k(t-t_k)^3 + B_k(t-t_k)^2 + C_k(t-t_k) + D_k \]

Definition at line 58 of file trajectory.cpp.

References Ak, bad_data, Bk, Ck, Dk, nb_path, and tk.


Generated on Thu Dec 14 08:52:20 2006 for ROBOOP, A Robotics Object Oriented Package in C++ by  doxygen 1.5.1