DUNE: Uniform Navigational Environment  2019.02.1
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 onThrottle (const IMC::Throttle *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::ScheduledArgs::min_speed.

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

On PathControlState message.

Parameters
[in]pcspointer to PathControlState message

Reimplemented from Maneuver::Multiplexer::AbstractMux.

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.
Collaboration diagram for Maneuver::Multiplexer::ScheduledGoto:
Collaboration graph