|
| TrapezoidalPath (Geometry2d::Point startPos, double startSpeed, Geometry2d::Point endPos, double endSpeed, const MotionConstraints constraints) |
|
virtual bool | hit (const Geometry2d::ShapeSet &obstacles, RJ::Seconds initialTime, RJ::Seconds *hitTime) const override |
| Returns true if the path hits an obstacle. More...
|
|
virtual RJ::Seconds | getDuration () const override |
| Returns how long it would take for the entire path to be traversed. More...
|
|
double | maxSpeed () const |
|
virtual std::unique_ptr< Path > | subPath (RJ::Seconds startTime, RJ::Seconds endTime) const override |
| Returns a subPath. More...
|
|
virtual RobotInstant | end () const override |
| Destination instant of the path.
|
|
virtual RobotInstant | start () const override |
| Start instant of the path.
|
|
virtual std::unique_ptr< Path > | clone () const override |
| Returns a deep copy of the Path.
|
|
| Path (RJ::Time startTime=RJ::now()) |
|
std::optional< RobotInstant > | evaluate (RJ::Seconds t) const |
| This method evaluates the path at a given time and returns the target angle, position, and velocity of the robot. More...
|
|
virtual void | draw (DebugDrawer *const debug_drawer, const QColor &color=Qt::black, const QString &layer="Motion") const |
| Draws the path. More...
|
|
RJ::Seconds | getSlowedDuration () const |
|
virtual void | setDebugText (QString string) |
|
virtual void | drawDebugText (DebugDrawer *debug_drawer, const QColor &color=Qt::darkCyan, const QString &layer="PathDebugText") const |
|
virtual RJ::Time | startTime () const |
| The time the path starts at.
|
|
virtual void | setStartTime (RJ::Time t) |
|
virtual bool | pathsIntersect (const std::vector< DynamicObstacle > &paths, RJ::Time startTime, Geometry2d::Point *hitLocation, RJ::Seconds *hitTime) const |
|
virtual std::unique_ptr< ConstPathIterator > | iterator (RJ::Time startTime, RJ::Seconds deltaT) const |
|
void | slow (float multiplier, RJ::Seconds timeInto=RJ::Seconds::zero()) |
|
Represents a straight-line path with a trapezoidal velocity profile.
The path represents a function of position given time that the robot should follow. The path is made up of other Paths and can be made up of CompositePaths.