goulib.motion

motion simulation (kinematics)

Functions

Segment2ndDegree(t0, t1, start[, end])

calculates a constant acceleration Segment between start and end

Segment4thDegree(t0, t1, start, end)

smooth trajectory from an initial position and initial speed (p0,v0) to a final position and speed (p1,v1) * if t1<=t0, t1 is calculated

SegmentsTrapezoidalSpeed(t0, p0, p3, a[, T, ...])

_delta(x0, x1)

_pva(val)

ramp(dp, v0, v1, a)

trapeze(dp, vmax, a[, v0, v2])

Classes

PVA(funcs)

represents a function of time returning position, velocity, and acceleration

Segment(t0, t1, funcs)

a PVA defined between 2 times, null elsewhere

SegmentPoly(t0, t1, p)

a segment defined by a polynomial position law

Segments([segments, label])

can be initialized with a list of segment (that of course can also be a Segments) :param label: a label can be given