2 hepta polynomial trajectory
6 #ifndef LUA_LIBA_TRAJPOLY7_H
7 #define LUA_LIBA_TRAJPOLY7_H
12 hepta polynomial trajectory
13 @field p coefficients of position
14 @field v coefficients of velocity
15 @field a coefficients of acceleration
16 @field j coefficients of jerk
19 #if defined(__cplusplus)
21 #endif /* __cplusplus */
24 constructor for hepta polynomial trajectory
25 @tparam number ts difference between final time and initial time
26 @tparam number p0 initial position
27 @tparam number p1 final position
28 @tparam[opt] number v0 initial velocity
29 @tparam[opt] number v1 final velocity
30 @tparam[opt] number a0 initial acceleration
31 @tparam[opt] number a1 final acceleration
32 @tparam[opt] number j0 initial jerk
33 @tparam[opt] number j1 final jerk
34 @treturn a.trajpoly7 hepta polynomial trajectory userdata
37 int liba_trajpoly7_new(lua_State
*L
);
40 generate for hepta polynomial trajectory
41 @tparam number ts difference between final time and initial time
42 @tparam number p0 initial position
43 @tparam number p1 final position
44 @tparam[opt] number v0 initial velocity
45 @tparam[opt] number v1 final velocity
46 @tparam[opt] number a0 initial acceleration
47 @tparam[opt] number a1 final acceleration
48 @tparam[opt] number j0 initial jerk
49 @tparam[opt] number j1 final jerk
50 @treturn a.trajpoly7 hepta polynomial trajectory userdata
53 int liba_trajpoly7_gen(lua_State
*L
);
56 calculate position for hepta polynomial trajectory
57 @tparam number x difference between current time and initial time
58 @treturn number position output
61 int liba_trajpoly7_pos(lua_State
*L
);
64 calculate velocity for hepta polynomial trajectory
65 @tparam number x difference between current time and initial time
66 @treturn number velocity output
69 int liba_trajpoly7_vel(lua_State
*L
);
72 calculate acceleration for hepta polynomial trajectory
73 @tparam number x difference between current time and initial time
74 @treturn number acceleration output
77 int liba_trajpoly7_acc(lua_State
*L
);
80 calculate jerk for hepta polynomial trajectory
81 @tparam number x difference between current time and initial time
82 @treturn number jerk output
85 int liba_trajpoly7_jer(lua_State
*L
);
87 #if defined(__cplusplus)
89 #endif /* __cplusplus */
91 #endif /* trajpoly7.h */