DUNE: Uniform Navigational Environment
2.4.2
|
Utility class to estimate a plan's progress.
Static Public Member Functions | |
static bool | getPoint (const IMC::ManeuverControlState *mcs, unsigned &number) |
static float | compute (const IMC::ManeuverControlState *mcs, const std::vector< float > &durations, float total_duration) |
static float | compute (const IMC::FollowPath *maneuver, const IMC::ManeuverControlState *mcs, const std::vector< float > &durations, float total_duration) |
static float | compute (const IMC::Rows *maneuver, const IMC::ManeuverControlState *mcs, const std::vector< float > &durations, float total_duration) |
static float | compute (const IMC::Message *man, const IMC::ManeuverControlState *mcs, const std::vector< float > &durations, float total_duration) |
|
inlinestatic |
Compute progress for multiple waypoint maneuver.
[in] | mcs | pointer to ManeuverControlState message |
[in] | durations | reference to durations vector |
[in] | total_duration | full duration of the plan |
References DUNE::IMC::ManeuverControlState::eta, and getPoint().
Referenced by compute().
|
inlinestatic |
Compute progress of FollowPath maneuver.
[in] | maneuver | pointer to maneuver message |
[in] | mcs | pointer to ManeuverControlState message |
[in] | durations | reference to durations vector |
[in] | total_duration | full duration of the plan |
References compute().
|
inlinestatic |
Compute progress of Rows maneuver.
[in] | maneuver | pointer to maneuver message |
[in] | mcs | pointer to ManeuverControlState message |
[in] | durations | reference to durations vector |
[in] | total_duration | full duration of the plan |
References compute().
|
inlinestatic |
Compute a plan's progress from maneuver and ManeuverControlState.
[in] | man | pointer to maneuver message |
[in] | mcs | pointer to ManeuverControlState message |
[in] | durations | pointer to vector of maneuver duration(s) |
[in] | total_duration | full duration of the plan |
References compute(), DUNE::IMC::ManeuverControlState::eta, DUNE::IMC::Message::getId(), and DUNE::Math::trimValue().
|
inlinestatic |
Get waypoint number out of info message.
[in] | mcs | pointer to ManeuverControlState message |
[out] | number | waypoint number |
References DUNE::IMC::ManeuverControlState::info, and DUNE::Utils::String::split().
Referenced by compute().