DUNE: Uniform Navigational Environment  2.5.0
Maneuver::Rows::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onManeuverDeactivation (void)
 
void consume (const IMC::Rows *maneuver)
 
void consume (const IMC::PathControlState *pcs)
 
void sendPath (double lat, double lon)
 
- Public Member Functions inherited from DUNE::IMC::Message
 Message (void)
 
virtual ~Message (void)
 
virtual Messageclone (void) const =0
 
virtual void clear (void)=0
 
virtual int validate (void) const =0
 
virtual const char * getName (void) const =0
 
virtual uint16_t getId (void) const =0
 
double setTimeStamp (double ts)
 
double setTimeStamp (void)
 
double getTimeStamp (void) const
 
uint16_t getSource (void) const
 
void setSource (uint16_t src)
 
uint8_t getSourceEntity (void) const
 
void setSourceEntity (uint8_t src_ent)
 
uint16_t getDestination (void) const
 
void setDestination (uint16_t dst)
 
uint8_t getDestinationEntity (void) const
 
void setDestinationEntity (uint8_t dst_ent)
 
virtual uint16_t getSubId (void) const
 
virtual void setSubId (uint16_t subid)
 
virtual fp64_t getValueFP (void) const
 
virtual void setValueFP (fp64_t val)
 
unsigned getSerializationSize (void) const
 
unsigned getPayloadSerializationSize (void) const
 
virtual unsigned getFixedSerializationSize (void) const
 
virtual unsigned getVariableSerializationSize (void) const
 
void toJSON (std::ostream &os) const
 
void toText (std::ostream &os) const
 
virtual uint8_t * serializeFields (uint8_t *bfr) const =0
 
virtual uint16_t deserializeFields (const uint8_t *bfr, uint16_t len)=0
 
virtual uint16_t reverseDeserializeFields (const uint8_t *bfr, uint16_t len)=0
 
virtual void fieldsToJSON (std::ostream &os, unsigned indent_level) const
 
bool operator== (const Message &other) const
 
bool operator!= (const Message &other) const
 

Public Attributes

Maneuvers::RowsStages * m_parser
 
IMC::DesiredPath m_path
 

Additional Inherited Members

- Protected Member Functions inherited from DUNE::IMC::Message
virtual void setTimeStampNested (double value)
 
virtual void setSourceNested (uint16_t value)
 
virtual void setSourceEntityNested (uint8_t value)
 
virtual void setDestinationNested (uint16_t value)
 
virtual void setDestinationEntityNested (uint8_t value)
 
virtual bool fieldsEqual (const Message &other) const
 
- Protected Attributes inherited from DUNE::IMC::Message
Header m_header
 

Constructor & Destructor Documentation

Maneuver::Rows::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Member Function Documentation

void Maneuver::Rows::Task::consume ( const IMC::Rows *  maneuver)
inline

References m_parser, m_path, and sendPath().

void Maneuver::Rows::Task::consume ( const IMC::PathControlState *  pcs)
inline

References m_parser, and sendPath().

void Maneuver::Rows::Task::onManeuverDeactivation ( void  )
inline

References m_parser.

void Maneuver::Rows::Task::sendPath ( double  lat,
double  lon 
)
inline

Send new desired path.

Parameters
[in]latlatitude for new desired path
[in]lonlongitude for new desired path

References m_path.

Referenced by consume().

Member Data Documentation

Maneuvers::RowsStages* Maneuver::Rows::Task::m_parser

Rows stages parser.

Referenced by consume(), and onManeuverDeactivation().

IMC::DesiredPath Maneuver::Rows::Task::m_path

Desired path message.

Referenced by consume(), and sendPath().

Collaboration diagram for Maneuver::Rows::Task:
Collaboration graph