Go to the documentation of this file.
89 [[nodiscard]] std::vector<Position>
positions() const noexcept;
137 struct InternalProjection
143 projectInternal(
const Position& point,
148 std::vector<GlobalTrajectoryPoint> pts;
176 const std::vector<LocalTrajectoryPoint>&
points()
const;
184 std::vector<LocalTrajectoryPoint> pts;
std::vector< GlobalTrajectoryPoint > & mutablePoints()
std::vector< LocalTrajectoryPoint > & mutablePoints()
GlobalTrajectoryPoint wayPointAfter
bool isValid() const noexcept
GlobalTrajectory(const std::vector< GlobalTrajectoryPoint > &points)
std::vector< std::size_t > Indices
This file is part of ArmarX.
std::vector< LocalTrajectoryPoint > LocalTrajectoryPoints
GlobalTrajectory()=default
std::vector< GlobalTrajectoryPoint > GlobalTrajectoryPoints
GlobalTrajectoryPoint wayPointBefore
std::shared_ptr< class GlobalTrajectory > GlobalTrajectoryPtr
const std::vector< LocalTrajectoryPoint > & points() const
void setMaxVelocity(float maxVelocity)
core::Twist feedforwardTwist
std::pair< GlobalTrajectory, bool > getSubTrajectory(const Position &point, const float distance) const
Project point onto the trajectory and return a new trajectory along the old one from that point for t...
GlobalTrajectoryPoint projection
static GlobalTrajectory FromPath(const Path &path, float velocity)
Note: the velocity will not be set!
std::vector< Pose > poses() const noexcept
LocalTrajectory()=default
Represents a point in time.
float duration(core::VelocityInterpolation interpolation) const
std::vector< Position > Positions
Evaluation evaluate(const DateTime ×tamp) const
std::vector< Position > positions() const noexcept
Indices allConnectedPointsInRange(std::size_t idx, float radius) const
get all points within a certain radius that are directly connected to idx
double distance(const Point &a, const Point &b)
Projection getProjection(const Position &point, const VelocityInterpolation &velocityInterpolation) const
bool hasMaxDistanceBetweenWaypoints(float maxDistance) const
const std::vector< GlobalTrajectoryPoint > & points() const
GlobalTrajectory resample(float eps) const
LocalTrajectory(const std::vector< LocalTrajectoryPoint > &points)