7#ifndef LIBA_TRAJPOLY3_H
8#define LIBA_TRAJPOLY3_H
20#if !defined A_TRAJPOLY3
23#if defined(__cplusplus)
52#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 1)
55#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 2)
72#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 1)
87#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 2)
102#if defined(__cplusplus)
123#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 1)
126#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 2)
129#if defined(__cplusplus)
138 a_trajpoly3_gen0(
this, ts, p0, p1, v0, v1);
144#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 1)
145 A_INLINE
void gen1() { a_trajpoly3_gen1(
this); }
151#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 2)
152 A_INLINE
void gen2() { a_trajpoly3_gen2(
this); }
#define a_float
Definition a.h:785
double a_trajpoly3_acc(a_trajpoly3 const *ctx, double x)
calculate acceleration for cubic polynomial trajectory
double a_trajpoly3_vel(a_trajpoly3 const *ctx, double x)
calculate velocity for cubic polynomial trajectory
double a_trajpoly3_pos(a_trajpoly3 const *ctx, double x)
calculate position for cubic polynomial trajectory
void a_trajpoly3_gen(a_trajpoly3 *ctx, double ts, double p0, double p1, double v0, double v1)
generate for cubic polynomial trajectory
instance structure for cubic polynomial trajectory
Definition trajpoly3.h:121
double v[3]
coefficients of velocity
Definition trajpoly3.h:124
double p[4]
coefficients of position
Definition trajpoly3.h:122
double a[2]
coefficients of acceleration
Definition trajpoly3.h:127