Namespaces | |
namespace | internal |
Classes | |
struct | PosVelAccState |
Multi-dof trajectory state containing position, velocity and acceleration data. More... | |
class | QuinticSplineSegment |
Class representing a multi-dimensional quintic spline segment with a start and end time. More... | |
Functions | |
template<class TrajectoryIterator , class Time > | |
TrajectoryIterator | findSegment (TrajectoryIterator first, TrajectoryIterator last, const Time &time) |
Find an iterator to the segment containing a specified time . | |
template<class Trajectory , class Time > | |
Trajectory::const_iterator | findSegment (const Trajectory &trajectory, const Time &time) |
Find an iterator to the segment containing a specified time . | |
template<class Trajectory , class Time > | |
Trajectory::iterator | findSegment (Trajectory &trajectory, const Time &time) |
Equivalent to findSegment but returning a non-const iterator. | |
template<class Trajectory > | |
Trajectory::const_iterator | sample (const Trajectory &trajectory, const typename Trajectory::value_type::Time &time, typename Trajectory::value_type::State &state) |
Sample a trajectory at a specified time. |
TrajectoryIterator trajectory_interface::findSegment | ( | TrajectoryIterator | first, |
TrajectoryIterator | last, | ||
const Time & | time | ||
) | [inline] |
Find an iterator to the segment containing a specified time
.
first | Input iterator to the initial position in the segment sequence. |
last | Input iterator to the final position in the segment sequence. The range searched is [first,last) . |
time | Time to search for in the range. |
time
. If no segment contains time
(ie. it's earlier than the start time of first
), then last
is returned.[first,last)
should be sorted by segment start time.Definition at line 80 of file trajectory_interface.h.
Trajectory::const_iterator trajectory_interface::findSegment | ( | const Trajectory & | trajectory, |
const Time & | time | ||
) | [inline] |
Find an iterator to the segment containing a specified time
.
This is a convenience method wrapping the iterator-based findSegment overload.
Trajectory | Trajectory type. Should be a sequence container sorted by segment start time. |
Definition at line 99 of file trajectory_interface.h.
Trajectory::iterator trajectory_interface::findSegment | ( | Trajectory & | trajectory, |
const Time & | time | ||
) | [inline] |
Equivalent to findSegment but returning a non-const iterator.
is
passed by non-const reference, it is not modified by this function. It's a workaround to allow overloads of this function to coexist (they need different signatures to prevent ambiguities). Definition at line 112 of file trajectory_interface.h.
Trajectory::const_iterator trajectory_interface::sample | ( | const Trajectory & | trajectory, |
const typename Trajectory::value_type::Time & | time, | ||
typename Trajectory::value_type::State & | state | ||
) | [inline] |
Sample a trajectory at a specified time.
This is a convenience function that combines finding the segment associated to a specified time (see findSegment) and sampling it.
Trajectory | Trajectory type. Should be a sequence container sorted by segment start time. |
[in] | trajectory | Holds a sequence of segments. |
[in] | time | Where the trajectory is to be sampled. |
[out] | state | Segment state at time . |
time
. If no segment contains time
, then trajectory.end()
is returned.trajectory.end()
.Definition at line 138 of file trajectory_interface.h.