DUNE: Uniform Navigational Environment  2016.09.0
Maneuver::Multiplexer::ScheduledGoto Class Reference

Detailed Description

ScheduledGoto maneuver.

Public Member Functions

 ScheduledGoto (Maneuvers::Maneuver *task, ScheduledArgs *args)
 
void onStart (const IMC::ScheduledGoto *maneuver)
 
void onPathControlState (const IMC::PathControlState *pcs)
 
void onEstimatedState (const IMC::EstimatedState *msg)
 
double update (const IMC::EstimatedState *msg)
 
 ~ScheduledGoto (void)
 
- Public Member Functions inherited from Maneuver::Multiplexer::MuxedManeuver< IMC::ScheduledGoto, ScheduledArgs >
 MuxedManeuver (Maneuvers::Maneuver *task, ScheduledArgs *args)
 
 MuxedManeuver (Maneuvers::Maneuver *task)
 
virtual ~MuxedManeuver (void)
 
void start (const IMC::Maneuver *maneuver)
 
- Public Member Functions inherited from Maneuver::Multiplexer::AbstractMux
 AbstractMux (Maneuvers::Maneuver *task)
 
virtual ~AbstractMux (void)
 
virtual void onBrake (const IMC::Brake *msg)
 
virtual void onStateReport (void)
 
virtual void onVehicleMedium (const IMC::VehicleMedium *msg)
 
virtual void onGpsFix (const IMC::GpsFix *msg)
 

Additional Inherited Members

- Protected Attributes inherited from Maneuver::Multiplexer::MuxedManeuver< IMC::ScheduledGoto, ScheduledArgs >
ScheduledArgsm_args
 
- Protected Attributes inherited from Maneuver::Multiplexer::AbstractMux
Maneuvers::Maneuver * m_task
 

Constructor & Destructor Documentation

Maneuver::Multiplexer::ScheduledGoto::ScheduledGoto ( Maneuvers::Maneuver *  task,
ScheduledArgs args 
)
inline

Default constructor.

Parameters
[in]taskpointer to Maneuver task
Maneuver::Multiplexer::ScheduledGoto::~ScheduledGoto ( void  )
inline

Member Function Documentation

void Maneuver::Multiplexer::ScheduledGoto::onEstimatedState ( const IMC::EstimatedState *  msg)
inlinevirtual

On message EstimatedState.

Parameters
[in]msgpointer to EstimatedState message

Reimplemented from Maneuver::Multiplexer::AbstractMux.

References Maneuver::Multiplexer::AbstractMux::m_task, and update().

void Maneuver::Multiplexer::ScheduledGoto::onPathControlState ( const IMC::PathControlState *  pcs)
inlinevirtual
void Maneuver::Multiplexer::ScheduledGoto::onStart ( const IMC::ScheduledGoto *  maneuver)
inlinevirtual

Start maneuver function.

Parameters
[in]maneuvergoto maneuver message

Implements Maneuver::Multiplexer::MuxedManeuver< IMC::ScheduledGoto, ScheduledArgs >.

double Maneuver::Multiplexer::ScheduledGoto::update ( const IMC::EstimatedState *  msg)
inline

Update the maneuver with a new reference speed.

Parameters
[in]msgestimated state message.
Returns
new speed reference.

References Maneuver::Multiplexer::MuxedManeuver< IMC::ScheduledGoto, ScheduledArgs >::m_args, Maneuver::Multiplexer::AbstractMux::m_task, and Maneuver::Multiplexer::ScheduledArgs::max_speed.

Referenced by onEstimatedState().

Collaboration diagram for Maneuver::Multiplexer::ScheduledGoto:
Collaboration graph