Go to the documentation of this file.    1 #ifndef AIKIDO_TRAJECTORY_PIECEWISELINEAR_TRAJECTORY_HPP_ 
    2 #define AIKIDO_TRAJECTORY_PIECEWISELINEAR_TRAJECTORY_HPP_ 
   73       Eigen::VectorXd& _tangentVector) 
const override;
 
  108 #endif // ifndef AIKIDO_TRAJECTORY_PIECEWISELINEAR_TRAJECTORY_HPP_ 
 
 
Waypoint in the trajectory.
Definition: Interpolated.hpp:77
 
Interpolated(statespace::ConstStateSpacePtr _stateSpace, statespace::ConstInterpolatorPtr _interpolator)
Constructs an empty trajectory.
 
void free(const statespace::ConstStateSpacePtr &stateSpace)
Free state.
 
statespace::ConstInterpolatorPtr getInterpolator() const
Gets the interpolator used to interpolate between waypoints.
 
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
 
void evaluateDerivative(double _t, int _derivative, Eigen::VectorXd &_tangentVector) const override
Evaluates the derivative of the trajectory at time _t.
 
int getWaypointIndexAfterTime(double _t) const
Get the index of the first waypoint whose time value is larger than _t.
 
double getEndTime() const override
Time at which the trajectory ends.
 
void evaluate(double _t, statespace::StateSpace::State *_state) const override
Evaluates the state of the trajectory at time _t and store the result in a _state allocated by getSta...
 
statespace::ConstInterpolatorPtr mInterpolator
Definition: Interpolated.hpp:101
 
std::shared_ptr< const StateSpace > ConstStateSpacePtr
Definition: StateSpace.hpp:15
 
statespace::ConstStateSpacePtr getStateSpace() const override
Gets the StateSpace that this trajectory is defined in.
 
std::shared_ptr< const Interpolator > ConstInterpolatorPtr
Definition: Interpolator.hpp:12
 
statespace::ConstStateSpacePtr mStateSpace
Definition: Interpolated.hpp:100
 
statespace::StateSpace::State * state
Definition: Interpolated.hpp:92
 
double t
Definition: Interpolated.hpp:91
 
std::vector< Waypoint > mWaypoints
Definition: Interpolated.hpp:102
 
Waypoint(double _t, statespace::StateSpace::State *_state)
 
void addWaypoint(double _t, const statespace::StateSpace::State *_state)
Add a waypoint to the trajectory at the given time.
 
bool operator<(const Waypoint &rhs) const
Comparator to allow sorting waypoints based on time.
 
double getDuration() const override
Duration of the trajectory.
 
double getWaypointTime(std::size_t _index) const
Gets the time of a waypoint.
 
std::size_t getNumWaypoints() const
Gets the number of waypoints.
 
Definition: StateSpace.hpp:167
 
std::size_t getNumDerivatives() const override
Gets an upper bound on the number of non-zero derivatives available in this parameterization.
 
const statespace::StateSpace::State * getWaypoint(std::size_t _index) const
Gets a waypoint.
 
Trajectory that uses an Interpolator to interpolate between waypoints.
Definition: Interpolated.hpp:14
 
double getStartTime() const override
Time at which the trajectory starts.
 
#define AIKIDO_DECLARE_POINTERS(X)
Definition: pointers.hpp:21
 
Time-parameterized path in a StateSpace.
Definition: Trajectory.hpp:20