Module liba.trajpoly5
quintic polynomial trajectory
Functions
new (ts, p0, p1[, v0[, v1[, a0[, a1]]]]) | constructor for quintic polynomial trajectory |
gen (ctx, ts, p0, p1[, v0[, v1[, a0[, a1]]]]) | generate for quintic polynomial trajectory |
pos (ctx, x) | calculate position for quintic polynomial trajectory |
vel (ctx, x) | calculate velocity for quintic polynomial trajectory |
acc (ctx, x) | calculate acceleration for quintic polynomial trajectory |
Functions
- new (ts, p0, p1[, v0[, v1[, a0[, a1]]]])
-
constructor for quintic polynomial trajectory
Parameters:
- ts number difference between final time and initial time
- p0 number initial position
- p1 number final position
- v0 number initial velocity (optional)
- v1 number final velocity (optional)
- a0 number initial acceleration (optional)
- a1 number final acceleration (optional)
Returns:
-
a.trajpoly5
quintic polynomial trajectory userdata
- gen (ctx, ts, p0, p1[, v0[, v1[, a0[, a1]]]])
-
generate for quintic polynomial trajectory
Parameters:
- ctx a.trajpoly5 quintic polynomial trajectory userdata
- ts number difference between final time and initial time
- p0 number initial position
- p1 number final position
- v0 number initial velocity (optional)
- v1 number final velocity (optional)
- a0 number initial acceleration (optional)
- a1 number final acceleration (optional)
Returns:
-
a.trajpoly5
quintic polynomial trajectory userdata
- pos (ctx, x)
-
calculate position for quintic polynomial trajectory
Parameters:
- ctx a.trajpoly5 quintic polynomial trajectory userdata
- x number difference between current time and initial time
Returns:
-
number
position output
- vel (ctx, x)
-
calculate velocity for quintic polynomial trajectory
Parameters:
- ctx a.trajpoly5 quintic polynomial trajectory userdata
- x number difference between current time and initial time
Returns:
-
number
velocity output
- acc (ctx, x)
-
calculate acceleration for quintic polynomial trajectory
Parameters:
- ctx a.trajpoly5 quintic polynomial trajectory userdata
- x number difference between current time and initial time
Returns:
-
number
acceleration output