Class a.trajpoly3

cubic polynomial trajectory

Tables

a.trajpoly3 cubic polynomial trajectory

Methods

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


Tables

a.trajpoly3
cubic polynomial trajectory

Fields:

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

Methods

a.trajpoly3:new (ts, p0, p1[, v0[, v1]])
constructor for cubic 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)

Returns:

    a.trajpoly3 cubic polynomial trajectory userdata
a.trajpoly3:gen (ts, p0, p1[, v0[, v1]])
generate for cubic 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)

Returns:

    a.trajpoly3 cubic polynomial trajectory userdata
a.trajpoly3:pos (x)
calculate position for cubic polynomial trajectory

Parameters:

  • x number difference between current time and initial time

Returns:

    number position output
a.trajpoly3:vel (x)
calculate velocity for cubic polynomial trajectory

Parameters:

  • x number difference between current time and initial time

Returns:

    number velocity output
a.trajpoly3:acc (x)
calculate acceleration for cubic 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