Class a.trajpoly5

quintic polynomial trajectory

Tables

a.trajpoly5 quintic polynomial trajectory

Methods

a.trajpoly5:new (ts, p0, p1[, v0[, v1[, a0[, a1]]]]) constructor for quintic polynomial trajectory
a.trajpoly5:gen (ts, p0, p1[, v0[, v1[, a0[, a1]]]]) generate for quintic polynomial trajectory
a.trajpoly5:pos (x) calculate position for quintic polynomial trajectory
a.trajpoly5:vel (x) calculate velocity for quintic polynomial trajectory
a.trajpoly5:acc (x) calculate acceleration for quintic polynomial trajectory


Tables

a.trajpoly5
quintic polynomial trajectory

Fields:

  • p coefficients of position
  • v coefficients of velocity
  • a coefficients of acceleration

Methods

a.trajpoly5: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
a.trajpoly5:gen (ts, p0, p1[, v0[, v1[, a0[, a1]]]])
generate 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
a.trajpoly5:pos (x)
calculate position for quintic polynomial trajectory

Parameters:

  • x number difference between current time and initial time

Returns:

    number position output
a.trajpoly5:vel (x)
calculate velocity for quintic polynomial trajectory

Parameters:

  • x number difference between current time and initial time

Returns:

    number velocity output
a.trajpoly5:acc (x)
calculate acceleration for quintic polynomial trajectory

Parameters:

  • x number difference between current time and initial time

Returns:

    number acceleration output
generated by LDoc 1.5.0 Last updated 2024-09-30 14:51:04