Represents a time-parameterized 2D motion trajectory.
Stores discrete State samples (time, velocity, acceleration, pose, curvature) along a parameterized path.
|
|
| Trajectory ()=default |
| | Default constructor.
|
| | Trajectory (std::vector< State > states) |
| | Constructs a Trajectory from a vector of State samples.
|
| bool | empty () const |
| units::Time | total_time () const |
| const std::vector< State > & | states () const |
| const std::vector< TrajectoryEvent > & | events () const |
|
void | set_events (std::vector< TrajectoryEvent > events) |
| | Attaches a vector of time-parameterized events to the trajectory.
|
| units::Time | time_from_distance (units::Length s) const |
| | Interpolates the time at which a given arc distance is reached.
|
| State | sample (units::Time t) const |
| | Samples trajectory state at timestamp t using binary search interpolation.
|
| Trajectory | relative_to (const Pose2d &pose) const |
| | Expresses all poses in the trajectory relative to a reference pose.
|
| Trajectory | mirror (const Pose2d &line_pose) const |
| | Mirrors the trajectory across the line represented by a pose.
|
| Trajectory | rotate_center (Translation2d center=Translation2d(3_tiles, 3_tiles)) const |
| | Rotates the trajectory 180 degrees around a center point (Point reflection).
|
| Trajectory | reverse () const |
| | Returns a time-reversed version of this trajectory (traces the path from end to start).
|
| Trajectory | operator+ (const Trajectory &other) const |
| | Concatenates two trajectories end-to-end.
|
| Pose2d | initial_pose () const |
|
bool | operator== (const Trajectory &other) const |
| | Checks equality between two trajectories.
|