DUNE: Uniform Navigational Environment  2.4.0
DUNE::Plans::Duration Class Reference

Detailed Description

Utility class to estimate a plan's duration.

Classes

struct  SpeedConversion
 

Public Types

typedef std::map< std::string,
std::vector< float > > 
ManeuverDuration
 

Static Public Member Functions

static
ManeuverDuration::const_iterator 
parse (const std::vector< IMC::PlanManeuver * > &nodes, const IMC::EstimatedState *state, ManeuverDuration &man_durations, const SpeedConversion &speed_conv)
 
static
ManeuverDuration::const_iterator 
parse (const std::vector< IMC::PlanManeuver * > &nodes, const IMC::EstimatedState *state, ManeuverDuration &man_durations)
 

Member Typedef Documentation

typedef std::map< std::string, std::vector<float> > DUNE::Plans::Duration::ManeuverDuration

Mapping between maneuver IDs and point durations.

Member Function Documentation

Duration::ManeuverDuration::const_iterator DUNE::Plans::Duration::parse ( const std::vector< IMC::PlanManeuver * > &  nodes,
const IMC::EstimatedState state,
ManeuverDuration man_durations,
const SpeedConversion speed_conv 
)
static

Parse plan duration from plan specification.

Parameters
[in]nodesvector of plan maneuver nodes
[in]statecurrent estimated state
[out]man_durationsmap of maneuver ids to point durations
[in]speed_convspeed conversion factors
Returns
iterator to last computed maneuver, returns end() if unable to compute

References DUNE::IMC::Message::getId().

Referenced by parse().

static ManeuverDuration::const_iterator DUNE::Plans::Duration::parse ( const std::vector< IMC::PlanManeuver * > &  nodes,
const IMC::EstimatedState state,
ManeuverDuration man_durations 
)
inlinestatic

Parse plan duration from plan specification.

Parameters
[in]nodesvector of plan maneuver nodes
[in]statecurrent estimated state
[out]man_durationsmap of maneuver ids to point durations
Returns
iterator to last computed maneuver, returns end() if unable to compute

References DUNE::Plans::Duration::SpeedConversion::act_factor, parse(), and DUNE::Plans::Duration::SpeedConversion::rpm_factor.

Collaboration diagram for DUNE::Plans::Duration:
Collaboration graph