Template Class AbstractEngine

Class Documentation

template<typename RequestType, typename ResultType>
class bitbots_splines::AbstractEngine

Public Functions

virtual ResultType update(double dt) = 0

Do one iteration of spline-progress-updating. This means that whenever update() is called, new position goals are retrieved from previously calculated splines and returned.

Parameters

dt – Passed time delta between last call to update() and now. Measured in seconds

Returns

New spline positions

virtual void setGoals(const RequestType &goals) = 0

Set new goals for the engine to calculate splines from.

Parameters

goals – An instance of RequestType that describes the goals that the spline should fulfill

virtual void reset() = 0

Reset the engine to its initial state.

virtual int getPercentDone() const = 0

Returns the percentage of the spline that has already been returned.