|
|
#include <armarx/navigation/core/Trajectory.h>
Public Types | |
| using | Indices = std::vector< std::size_t > |
Public Member Functions | |
| Indices | allConnectedPointsInRange (std::size_t idx, float radius) const |
| get all points within a certain radius that are directly connected to idx More... | |
| float | duration (core::VelocityInterpolation interpolation) const |
| Projection | getProjection (const Position &point, const VelocityInterpolation &velocityInterpolation) const |
| float | getRemainingDistance (const Position &point) const |
| Project point onto the trajectory and evaluate the remaining distance from there on. More... | |
| float | getRemainingDuration (const Position &point, float linearVelocity=400, float angularVelocity=0.5) const |
| Project point onto the trajectory and evaluate the remaining duration from there on. More... | |
| 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 the specified distance. More... | |
| GlobalTrajectory ()=default | |
| GlobalTrajectory (const std::vector< GlobalTrajectoryPoint > &points) | |
| bool | hasMaxDistanceBetweenWaypoints (float maxDistance) const |
| bool | isValid () const noexcept |
| float | length () const |
| std::vector< GlobalTrajectoryPoint > & | mutablePoints () |
| const std::vector< GlobalTrajectoryPoint > & | points () const |
| std::vector< Pose > | poses () const noexcept |
| std::vector< Position > | positions () const noexcept |
| GlobalTrajectory | resample (float eps) const |
| void | setMaxVelocity (float maxVelocity) |
Static Public Member Functions | |
| static GlobalTrajectory | FromPath (const Path &path, const std::vector< float > &velocity) |
| static GlobalTrajectory | FromPath (const Path &path, float velocity) |
| Note: the velocity will not be set! More... | |
| static GlobalTrajectory | FromPath (const Pose &start, const Positions &waypoints, const Pose &goal, const std::vector< float > &velocity) |
| static GlobalTrajectory | FromPath (const Pose &start, const Positions &waypoints, const Pose &goal, float velocity) |
| Note: the velocity will not be set! More... | |
Definition at line 70 of file Trajectory.h.
| using Indices = std::vector<std::size_t> |
Definition at line 149 of file Trajectory.h.
|
default |
Here is the caller graph for this function:
|
inline |
Definition at line 75 of file Trajectory.h.
| GlobalTrajectory::Indices allConnectedPointsInRange | ( | std::size_t | idx, |
| float | radius | ||
| ) | const |
get all points within a certain radius that are directly connected to idx
Definition at line 846 of file Trajectory.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| float duration | ( | core::VelocityInterpolation | interpolation | ) | const |
|
static |
|
static |
Note: the velocity will not be set!
Definition at line 417 of file Trajectory.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Note: the velocity will not be set!
Definition at line 429 of file Trajectory.cpp.
Here is the call graph for this function:| Projection getProjection | ( | const Position & | point, |
| const VelocityInterpolation & | velocityInterpolation | ||
| ) | const |
Project point onto the trajectory and evaluate the remaining distance from there on.
| point | current location, from which on to measure |
Definition at line 332 of file Trajectory.cpp.
Here is the call graph for this function:| float getRemainingDuration | ( | const Position & | point, |
| float | linearVelocity = 400, |
||
| float | angularVelocity = 0.5 |
||
| ) | const |
Project point onto the trajectory and evaluate the remaining duration from there on.
| point | current location, from which on to measure |
| linearVelocity | velocity for translations in mm/s |
| angularVelocity | velocity for rotations in rad/s |
Definition at line 354 of file Trajectory.cpp.
Here is the call graph for this function:| 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 the specified distance.
Definition at line 289 of file Trajectory.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool hasMaxDistanceBetweenWaypoints | ( | float | maxDistance | ) | const |
|
noexcept |
| float length | ( | ) | const |
Definition at line 740 of file Trajectory.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< GlobalTrajectoryPoint > & mutablePoints | ( | ) |
| const std::vector< GlobalTrajectoryPoint > & points | ( | ) | const |
|
noexcept |
Definition at line 402 of file Trajectory.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Definition at line 388 of file Trajectory.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| GlobalTrajectory resample | ( | float | eps | ) | const |
| void setMaxVelocity | ( | float | maxVelocity | ) |
Definition at line 761 of file Trajectory.cpp.