![]() |
Rise
The Vieneo Province
|
#include <RouteGuidance.h>
Classes | |
| struct | Point |
| struct | Node |
| struct | Cue |
Public Types | |
| enum | CueType { Approaching = 0 , Execute = 1 , Continue = 2 , Recalculating = 4 , Completed = 5 } |
Public Member Functions | |
| void | Reset (std::vector< Node > nodes={}, bool preserveRecalculationCooldown=false) |
| std::size_t | NextNodeIndex () const |
| bool | IsComplete () const |
| std::vector< Cue > | Update (Point position, float speedKph, float elapsedSeconds=0.0f) |
Static Public Member Functions | |
| static float | DistanceMeters (Point a, Point b) |
| static float | Heading (Point a, Point b) |
| static float | HeadingChange (float to, float from) |
| static int | Direction (float bearing) |
| static float | WarningDistanceMeters (float speedKph) |
| static float | ExecuteDistanceMeters (float speedKph) |
Private Member Functions | |
| bool | ShouldRecalculate (Point position, float seconds, float &deviationMeters) |
| bool | IsFollowingCurrentEdge (Point previous, Point position) const |
| void | RecoverPassedNodes (Point position) |
| bool | ReachedRouteEnd (Point position) const |
| bool | Reached (Point p, std::size_t i) const |
| bool | IsManeuver (std::size_t i) const |
| std::size_t | ManeuverExit (std::size_t i) const |
| void | BuildManeuvers () |
| float | TurnAt (std::size_t i) const |
| bool | ShouldSpeakExecution (std::size_t i) const |
| Cue | ManeuverCue (CueType type, std::size_t i, float meters) const |
Static Private Member Functions | |
| static float | TravelMeters (float speedKph, float seconds) |
| static float | SegmentDistance (Point p, Point a, Point b, float &t) |
Private Attributes | |
| std::vector< Node > | nodes_ |
| std::vector< float > | cumulativeMeters_ |
| std::vector< std::size_t > | maneuverExits_ |
| std::size_t | next_ = 0 |
| std::size_t | warned_ = None |
| std::size_t | executed_ = None |
| std::size_t | reassure_ = None |
| bool | initialized_ = false |
| bool | completed_ = false |
| bool | initialContinuePending_ = true |
| Point | previousPosition_ = {} |
| bool | reroutePending_ = false |
| float | deviationSeconds_ = 0.0f |
| float | rerouteWaitSeconds_ = 0.0f |
| float | recalculationCooldownSeconds_ = 0.0f |
| float | bestProgressMeters_ = -(std::numeric_limits<float>::max)() |
Static Private Attributes | |
| static constexpr std::size_t | None = (std::numeric_limits<std::size_t>::max)() |
Definition at line 13 of file RouteGuidance.h.
| Enumerator | |
|---|---|
| Approaching | |
| Execute | |
| Continue | |
| Recalculating | |
| Completed | |
Definition at line 18 of file RouteGuidance.h.
|
inlineprivate |
|
inlinestatic |
|
inlinestatic |
Definition at line 73 of file RouteGuidance.h.
|
inlinestatic |
|
inline |
Definition at line 239 of file RouteGuidance.h.
|
inlineprivate |
Definition at line 392 of file RouteGuidance.h.
|
inlineprivate |
Definition at line 346 of file RouteGuidance.h.
|
inline |
|
inlineprivate |
Definition at line 320 of file RouteGuidance.h.
|
inlineprivate |
Definition at line 304 of file RouteGuidance.h.
Definition at line 254 of file RouteGuidance.h.
Definition at line 296 of file RouteGuidance.h.
|
inlineprivate |
Definition at line 216 of file RouteGuidance.h.
|
inlineprivate |
Definition at line 383 of file RouteGuidance.h.
|
inlinestaticprivate |
|
inlineprivate |
Definition at line 377 of file RouteGuidance.h.
|
inline |
Definition at line 80 of file RouteGuidance.h.
|
inlinestatic |
Definition at line 67 of file RouteGuidance.h.
|
private |
Definition at line 214 of file RouteGuidance.h.
|
private |
Definition at line 208 of file RouteGuidance.h.
|
private |
Definition at line 205 of file RouteGuidance.h.
|
private |
Definition at line 212 of file RouteGuidance.h.
|
private |
Definition at line 207 of file RouteGuidance.h.
|
private |
Definition at line 209 of file RouteGuidance.h.
|
private |
Definition at line 208 of file RouteGuidance.h.
|
private |
Definition at line 206 of file RouteGuidance.h.
|
private |
Definition at line 207 of file RouteGuidance.h.
|
private |
Definition at line 204 of file RouteGuidance.h.
|
staticconstexprprivate |
Definition at line 203 of file RouteGuidance.h.
|
private |
Definition at line 210 of file RouteGuidance.h.
|
private |
Definition at line 207 of file RouteGuidance.h.
|
private |
Definition at line 213 of file RouteGuidance.h.
|
private |
Definition at line 211 of file RouteGuidance.h.
|
private |
Definition at line 212 of file RouteGuidance.h.
|
private |
Definition at line 207 of file RouteGuidance.h.