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
trajpoly7.h
Go to the documentation of this file.
1
6
7#ifndef LIBA_TRAJPOLY7_H
8#define LIBA_TRAJPOLY7_H
9
10#include "a.h"
11
17
18typedef struct a_trajpoly7 a_trajpoly7;
19
20#if defined(__cplusplus)
21extern "C" {
22#endif /* __cplusplus */
23
51A_EXTERN void a_trajpoly7_gen(a_trajpoly7 *ctx, a_real ts,
52 a_real p0, a_real p1,
53 a_real v0, a_real v1,
54 a_real a0, a_real a1,
55 a_real j0, a_real j1);
56
62A_EXTERN void a_trajpoly7_c0(a_trajpoly7 const *ctx, a_real c[8]);
63
69A_EXTERN void a_trajpoly7_c1(a_trajpoly7 const *ctx, a_real c[7]);
70
76A_EXTERN void a_trajpoly7_c2(a_trajpoly7 const *ctx, a_real c[6]);
77
83A_EXTERN void a_trajpoly7_c3(a_trajpoly7 const *ctx, a_real c[5]);
84
96A_EXTERN a_real a_trajpoly7_pos(a_trajpoly7 const *ctx, a_real x);
97
109A_EXTERN a_real a_trajpoly7_vel(a_trajpoly7 const *ctx, a_real x);
110
122A_EXTERN a_real a_trajpoly7_acc(a_trajpoly7 const *ctx, a_real x);
123
135A_EXTERN a_real a_trajpoly7_jer(a_trajpoly7 const *ctx, a_real x);
136
137#if defined(__cplusplus)
138} /* extern "C" */
139namespace a
140{
141typedef struct a_trajpoly7 trajpoly7;
142} /* namespace a */
143#endif /* __cplusplus */
144
157{
159#if defined(__cplusplus)
160 A_INLINE void gen(a_real ts, a_real p0, a_real p1,
161 a_real v0 = 0, a_real v1 = 0,
162 a_real a0 = 0, a_real a1 = 0,
163 a_real j0 = 0, a_real j1 = 0)
164 {
165 a_trajpoly7_gen(this, ts, p0, p1, v0, v1, a0, a1, j0, j1);
166 }
167 A_INLINE a_real pos(a_real x) const
168 {
169 return a_trajpoly7_pos(this, x);
170 }
171 A_INLINE a_real vel(a_real x) const
172 {
173 return a_trajpoly7_vel(this, x);
174 }
175 A_INLINE a_real acc(a_real x) const
176 {
177 return a_trajpoly7_acc(this, x);
178 }
179 A_INLINE a_real jer(a_real x) const
180 {
181 return a_trajpoly7_jer(this, x);
182 }
183 A_INLINE void c0(a_real x[8]) const
184 {
185 a_trajpoly7_c0(this, x);
186 }
187 A_INLINE void c1(a_real x[7]) const
188 {
189 a_trajpoly7_c1(this, x);
190 }
191 A_INLINE void c2(a_real x[6]) const
192 {
193 a_trajpoly7_c2(this, x);
194 }
195 A_INLINE void c3(a_real x[5]) const
196 {
197 a_trajpoly7_c3(this, x);
198 }
199#endif /* __cplusplus */
200};
201
203
204#endif /* a/trajpoly7.h */
algorithm library
double a_real
compiler built-in floating-point number type
Definition a.h:1006
void a_trajpoly7_c1(a_trajpoly7 const *ctx, a_real c[7])
compute coefficients of velocity for hepta polynomial trajectory
void a_trajpoly7_c3(a_trajpoly7 const *ctx, a_real c[5])
compute coefficients of jerk for hepta polynomial trajectory
a_real a_trajpoly7_jer(a_trajpoly7 const *ctx, a_real x)
compute jerk for hepta polynomial trajectory
void a_trajpoly7_c2(a_trajpoly7 const *ctx, a_real c[6])
compute coefficients of acceleration for hepta polynomial trajectory
a_real a_trajpoly7_pos(a_trajpoly7 const *ctx, a_real x)
compute position for hepta polynomial trajectory
void a_trajpoly7_gen(a_trajpoly7 *ctx, a_real ts, a_real p0, a_real p1, a_real v0, a_real v1, a_real a0, a_real a1, a_real j0, a_real j1)
generate for hepta polynomial trajectory
a_real a_trajpoly7_vel(a_trajpoly7 const *ctx, a_real x)
compute velocity for hepta polynomial trajectory
void a_trajpoly7_c0(a_trajpoly7 const *ctx, a_real c[8])
compute coefficients of position for hepta polynomial trajectory
a_real a_trajpoly7_acc(a_trajpoly7 const *ctx, a_real x)
compute acceleration for hepta polynomial trajectory
instance structure for hepta polynomial trajectory
Definition trajpoly7.h:157
a_real c[8]
Definition trajpoly7.h:158