Aikido
|
Time-parameterized path in a StateSpace
.
More...
#include <aikido/trajectory/Trajectory.hpp>
Public Member Functions | |
virtual | ~Trajectory ()=default |
virtual statespace::ConstStateSpacePtr | getStateSpace () const =0 |
Gets the StateSpace that this trajectory is defined in. More... | |
virtual std::size_t | getNumDerivatives () const =0 |
Gets an upper bound on the number of non-zero derivatives available in this parameterization. More... | |
virtual double | getDuration () const =0 |
Duration of the trajectory. More... | |
virtual double | getStartTime () const =0 |
Time at which the trajectory starts. More... | |
virtual double | getEndTime () const =0 |
Time at which the trajectory ends. More... | |
virtual void | evaluate (double _t, statespace::StateSpace::State *_state) const =0 |
Evaluates the state of the trajectory at time _t and store the result in a _state allocated by getStateSpace() . More... | |
virtual void | evaluateDerivative (double _t, int _derivative, Eigen::VectorXd &_tangentVector) const =0 |
Evaluates the derivative of the trajectory at time _t . More... | |
Public Attributes | |
TrajectoryMetadata | metadata |
Trajectory metadata. More... | |
Time-parameterized path in a StateSpace
.
The parameterization, number of derivatives available, and continuity of this trajectory is defined by the concrete implementation of this class. The interpretation of the time parameter is also implementation defined: it may represent an actual time time or some other value (e.g. arc length under a distance metric).
|
virtualdefault |
|
pure virtual |
Evaluates the state of the trajectory at time _t
and store the result in a _state
allocated by getStateSpace()
.
The output of this function is implementation-defined if _t
is not between getStartTime()
and getEndTime()
.
_t | time parameter | |
[out] | _state | output state of the trajectory at time _t |
Implemented in aikido::trajectory::BSpline, aikido::trajectory::Spline, and aikido::trajectory::Interpolated.
|
pure virtual |
Evaluates the derivative of the trajectory at time _t
.
The _tangentVector
is defined in the local frame (i.e. "body frame") and is implementation-defined if not between getStartTime()
and getEndTime()
. Derivatives of order higher than getNumDerivatives
are guaranteed to be zero.
_t | time parameter | |
_derivative | order of derivative | |
[out] | _tangentVector | output tangent vector in the local frame |
Implemented in aikido::trajectory::BSpline, aikido::trajectory::Spline, and aikido::trajectory::Interpolated.
|
pure virtual |
Duration of the trajectory.
Note that getStartTime()
may not be zero.
Implemented in aikido::trajectory::BSpline, aikido::trajectory::Spline, and aikido::trajectory::Interpolated.
|
pure virtual |
Time at which the trajectory ends.
This may not be getDuration()
if getStartTime()
is not zero.
Implemented in aikido::trajectory::BSpline, aikido::trajectory::Spline, and aikido::trajectory::Interpolated.
|
pure virtual |
Gets an upper bound on the number of non-zero derivatives available in this parameterization.
Note that evaluateDerivative
may return zero before this value for some trajectories.
Implemented in aikido::trajectory::BSpline, aikido::trajectory::Spline, and aikido::trajectory::Interpolated.
|
pure virtual |
Time at which the trajectory starts.
This may not be zero.
Implemented in aikido::trajectory::BSpline, aikido::trajectory::Spline, and aikido::trajectory::Interpolated.
|
pure virtual |
Gets the StateSpace
that this trajectory is defined in.
Implemented in aikido::trajectory::BSpline, aikido::trajectory::Spline, and aikido::trajectory::Interpolated.
TrajectoryMetadata aikido::trajectory::Trajectory::metadata |
Trajectory metadata.