liba 0.1.15
An algorithm library based on C/C++
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches
cubic polynomial trajectory
Collaboration diagram for cubic polynomial trajectory:

Data Structures

struct  a_trajpoly3
 instance structure for cubic polynomial trajectory More...
 

Typedefs

typedef struct a_trajpoly3 a_trajpoly3
 

Functions

void a_trajpoly3_gen (a_trajpoly3 *ctx, a_real ts, a_real p0, a_real p1, a_real v0, a_real v1)
 generate for cubic polynomial trajectory
 
void a_trajpoly3_c0 (a_trajpoly3 const *ctx, a_real c[4])
 compute coefficients of position for cubic polynomial trajectory
 
void a_trajpoly3_c1 (a_trajpoly3 const *ctx, a_real c[3])
 compute coefficients of velocity for cubic polynomial trajectory
 
void a_trajpoly3_c2 (a_trajpoly3 const *ctx, a_real c[2])
 compute coefficients of acceleration for cubic polynomial trajectory
 
a_real a_trajpoly3_pos (a_trajpoly3 const *ctx, a_real x)
 compute position for cubic polynomial trajectory
 
a_real a_trajpoly3_vel (a_trajpoly3 const *ctx, a_real x)
 compute velocity for cubic polynomial trajectory
 
a_real a_trajpoly3_acc (a_trajpoly3 const *ctx, a_real x)
 compute acceleration for cubic polynomial trajectory
 

Detailed Description

Function Documentation

◆ a_trajpoly3_acc()

a_real a_trajpoly3_acc ( a_trajpoly3 const * ctx,
a_real x )

compute acceleration for cubic polynomial trajectory

p¨(t)=2c2+6c3(tt0)

Parameters
[in]ctxpoints to an instance of cubic polynomial trajectory
[in]xdifference between current time and initial time
Returns
acceleration output

◆ a_trajpoly3_c0()

void a_trajpoly3_c0 ( a_trajpoly3 const * ctx,
a_real c[4] )

compute coefficients of position for cubic polynomial trajectory

Parameters
[in]ctxpoints to an instance of cubic polynomial trajectory
[out]ccoefficients of position

◆ a_trajpoly3_c1()

void a_trajpoly3_c1 ( a_trajpoly3 const * ctx,
a_real c[3] )

compute coefficients of velocity for cubic polynomial trajectory

Parameters
[in]ctxpoints to an instance of cubic polynomial trajectory
[out]ccoefficients of velocity

◆ a_trajpoly3_c2()

void a_trajpoly3_c2 ( a_trajpoly3 const * ctx,
a_real c[2] )

compute coefficients of acceleration for cubic polynomial trajectory

Parameters
[in]ctxpoints to an instance of cubic polynomial trajectory
[out]ccoefficients of acceleration

◆ a_trajpoly3_gen()

void a_trajpoly3_gen ( a_trajpoly3 * ctx,
a_real ts,
a_real p0,
a_real p1,
a_real v0,
a_real v1 )

generate for cubic polynomial trajectory

{t=t1t0p=p1p0c0=p0c1=v0c2=(2v0v1)t+3pt2c3=(v0+v1)t2pt3

Parameters
[in,out]ctxpoints to an instance of cubic polynomial trajectory
[in]tsdifference between final time and initial time
[in]p0initial position
[in]p1final position
[in]v0initial velocity
[in]v1final velocity

◆ a_trajpoly3_pos()

a_real a_trajpoly3_pos ( a_trajpoly3 const * ctx,
a_real x )

compute position for cubic polynomial trajectory

p(t)=c0+c1(tt0)+c2(tt0)2+c3(tt0)3

Parameters
[in]ctxpoints to an instance of cubic polynomial trajectory
[in]xdifference between current time and initial time
Returns
position output

◆ a_trajpoly3_vel()

a_real a_trajpoly3_vel ( a_trajpoly3 const * ctx,
a_real x )

compute velocity for cubic polynomial trajectory

p˙(t)=c1+2c2(tt0)+3c3(tt0)2

Parameters
[in]ctxpoints to an instance of cubic polynomial trajectory
[in]xdifference between current time and initial time
Returns
velocity output