![]() |
DUNE: Uniform Navigational Environment
2017.01.0
|
Utility class to estimate a plan's duration and speed profiles.
Classes | |
| struct | Profile |
| struct | SpeedProfile |
Public Types | |
| typedef std::map< std::string, Profile > | ProfileMap |
| typedef ProfileMap::const_iterator | const_iterator |
Public Member Functions | |
| TimeProfile (const SpeedModel *speed_model) | |
| ~TimeProfile (void) | |
| void | parse (const std::vector< IMC::PlanManeuver * > &nodes, const IMC::EstimatedState *state) |
| void | clear (void) |
| const_iterator | begin (void) const |
| const_iterator | end (void) const |
| size_t | size (void) const |
| const_iterator | find (const std::string &str) const |
| const std::string & | lastValid (void) const |
| bool | isDurationFinite (void) const |
| typedef ProfileMap::const_iterator DUNE::Plans::TimeProfile::const_iterator |
Const iterator for this map.
| typedef std::map< std::string, Profile> DUNE::Plans::TimeProfile::ProfileMap |
Mapping between maneuver IDs and their profiles.
|
inline |
Constructor.
|
inline |
Destructor.
References DUNE::Memory::clear().
|
inline |
First position of the vector.
|
inline |
Clear the vector.
|
inline |
Last position of the vector.
|
inline |
Find function for the map.
| [in] | str | map's key of object to find |
|
inline |
Has finite duration.
|
inline |
ID of last maneuver with a valid duration.
| void DUNE::Plans::TimeProfile::parse | ( | const std::vector< IMC::PlanManeuver * > & | nodes, |
| const IMC::EstimatedState * | state | ||
| ) |
Parse plan duration and speeds from vector of plan maneuver nodes.
| [in] | nodes | vector of plan maneuver nodes |
| [in] | state | current estimated state |
References DUNE::Memory::clear(), DUNE::Plans::TimeProfile::Profile::durations, DUNE::IMC::Message::getId(), and DUNE::Plans::TimeProfile::Profile::speeds.
|
inline |
Size of the map.
