A trajectory defined by a path and timing trajectory.
Using a path of form r(s)
and a time_scaling of the form s(t)
, a full trajectory of form q(t) = r(s(t))
is modeled.
T | The scalar type, which must be one of the default scalars. |
#include <drake/common/trajectories/path_parameterized_trajectory.h>
Public Member Functions | |
PathParameterizedTrajectory (const Trajectory< T > &path, const Trajectory< T > &time_scaling) | |
Constructs a trajectory with the given path and time_scaling . More... | |
~PathParameterizedTrajectory () final | |
std::unique_ptr< trajectories::Trajectory< T > > | Clone () const override |
MatrixX< T > | value (const T &t) const override |
Evaluates the PathParameterizedTrajectory at the given time t. More... | |
Eigen::Index | rows () const override |
Eigen::Index | cols () const override |
T | start_time () const override |
T | end_time () const override |
const trajectories::Trajectory< T > & | path () const |
Returns the path of this trajectory. More... | |
const trajectories::Trajectory< T > & | time_scaling () const |
Returns the time_scaling of this trajectory. More... | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
PathParameterizedTrajectory (const PathParameterizedTrajectory &)=default | |
PathParameterizedTrajectory & | operator= (const PathParameterizedTrajectory &)=default |
PathParameterizedTrajectory (PathParameterizedTrajectory &&)=default | |
PathParameterizedTrajectory & | operator= (PathParameterizedTrajectory &&)=default |
Public Member Functions inherited from Trajectory< T > | |
virtual | ~Trajectory () |
MatrixX< T > | vector_values (const std::vector< T > &t) const |
If cols()==1, then evaluates the trajectory at each time t , and returns the results as a Matrix with the ith column corresponding to the ith time. More... | |
MatrixX< T > | vector_values (const Eigen::Ref< const VectorX< T >> &t) const |
If cols()==1, then evaluates the trajectory at each time t , and returns the results as a Matrix with the ith column corresponding to the ith time. More... | |
bool | has_derivative () const |
Returns true iff the Trajectory provides and implementation for EvalDerivative() and MakeDerivative(). More... | |
MatrixX< T > | EvalDerivative (const T &t, int derivative_order=1) const |
Evaluates the derivative of this at the given time t . More... | |
std::unique_ptr< Trajectory< T > > | MakeDerivative (int derivative_order=1) const |
Takes the derivative of this Trajectory. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Trajectory< T > | |
Trajectory ()=default | |
Trajectory (const Trajectory &)=default | |
Trajectory & | operator= (const Trajectory &)=default |
Trajectory (Trajectory &&)=default | |
Trajectory & | operator= (Trajectory &&)=default |
|
default |
|
default |
PathParameterizedTrajectory | ( | const Trajectory< T > & | path, |
const Trajectory< T > & | time_scaling | ||
) |
Constructs a trajectory with the given path
and time_scaling
.
|
final |
|
overridevirtual |
Implements Trajectory< T >.
|
overridevirtual |
Implements Trajectory< T >.
|
overridevirtual |
Implements Trajectory< T >.
|
default |
|
default |
const trajectories::Trajectory<T>& path | ( | ) | const |
Returns the path of this trajectory.
|
overridevirtual |
Implements Trajectory< T >.
|
overridevirtual |
Implements Trajectory< T >.
const trajectories::Trajectory<T>& time_scaling | ( | ) | const |
Returns the time_scaling of this trajectory.
|
overridevirtual |
Evaluates the PathParameterizedTrajectory at the given time t.
t | The time at which to evaluate the PathParameterizedTrajectory. |
t.is_constant()
must be true. value(-1)
will return value(0)
for a trajectory defined over [0, 1]. Implements Trajectory< T >.