DUNE: Uniform Navigational Environment
2.6.0-rc1
|
Class for handling pre-computed statistics.
Public Member Functions | |
PreStatistics (IMC::PlanStatistics *msg) | |
void | fill (const std::vector< IMC::PlanManeuver * > &nodes, const Timeline &tl) |
void | fill (const ComponentActiveTime &cat) |
void | fill (const FuelPrediction &fpred) |
Public Member Functions inherited from Plan::Engine::Statistics | |
Statistics (IMC::PlanStatistics *msg) | |
void | setProperties (unsigned prop) |
Additional Inherited Members | |
Protected Member Functions inherited from Plan::Engine::Statistics | |
void | addTuple (std::string &str, const std::string &name, float value, unsigned precision=1) |
void | addTuple (std::string &str, const std::string &name, const std::string &value) |
Protected Attributes inherited from Plan::Engine::Statistics | |
IMC::PlanStatistics * | m_ps |
|
inline |
Constructor.
[in] | msg | pointer to statistics message |
References Plan::Engine::Statistics::m_ps.
|
inline |
Fill in durations.
[in] | nodes | vector of sequenced PlanManeuver nodes |
[in] | tl | Timeline of the plan |
References Plan::Engine::Statistics::addTuple(), Plan::Engine::Timeline::getExecutionDuration(), Plan::Engine::Timeline::getManeuverEndETA(), Plan::Engine::Timeline::getManeuverStartETA(), Plan::Engine::Timeline::getPlanETA(), and Plan::Engine::Statistics::m_ps.
|
inline |
Fill in actions.
[in] | cat | list of times that components are active |
References Plan::Engine::Statistics::addTuple(), Plan::Engine::ComponentActiveTime::begin(), Plan::Engine::ComponentActiveTime::end(), and Plan::Engine::Statistics::m_ps.
|
inline |
Fill in fuel predictions.
[in] | fpred | fuel prediction object |
References Plan::Engine::Statistics::addTuple(), Plan::Engine::FuelPrediction::getHotel(), Plan::Engine::FuelPrediction::getIMU(), Plan::Engine::FuelPrediction::getMotion(), Plan::Engine::FuelPrediction::getPayload(), Plan::Engine::FuelPrediction::getTotal(), and Plan::Engine::Statistics::m_ps.