|
| CompositePath () |
| default path is empty
|
|
| CompositePath (std::unique_ptr< Path > path) |
| constructors with one path
|
|
template<typename... Args> |
| CompositePath (std::unique_ptr< Path > path, Args... args) |
|
void | append (std::unique_ptr< Path > path) |
| Append the path to the end of the CompositePath.
|
|
template<typename... Args> |
void | append (std::unique_ptr< Path > path, Args... args) |
|
virtual bool | hit (const Geometry2d::ShapeSet &shape, RJ::Seconds startTimeIntoPath, RJ::Seconds *hitTime) const override |
| Returns true if the path hits an obstacle. More...
|
|
virtual void | draw (DebugDrawer *constdebug_drawer, const QColor &color=Qt::black, const QString &layer="Motion") const override |
| Draws the path. More...
|
|
virtual RJ::Seconds | getDuration () const override |
| Returns how long it would take for the entire path to be traversed. More...
|
|
virtual std::unique_ptr< Path > | subPath (RJ::Seconds startTime=0ms, RJ::Seconds endTime=RJ::Seconds::max()) const override |
| Returns a subPath. More...
|
|
virtual RobotInstant | start () const override |
| Start instant of the path.
|
|
virtual RobotInstant | end () const override |
| Destination 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...
|
|
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 motion path made up of a series of Paths.
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.