DUNE: Uniform Navigational Environment  2019.02.1
Maneuver::FollowTarget::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
double minimumDistance (double r, double u, double x_0_c, double x_actual, double y_0_c, double y_actual)
 
double delta_x (double r, double u, double x_0_c, double x_actual)
 
double delta_y (double r, double u, double y_0_c, double y_actual)
 
double x_path_derivative (double r, double u)
 
double y_path_derivative (double r, double u)
 
void consume (const IMC::Target *msg)
 
void consume (const IMC::EstimatedState *msg)
 
void consume (const IMC::EstimatedStreamVelocity *msg)
 
void onMain (void)
 
- 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

Arguments m_args
 
IMC::DesiredRoll m_desired_roll
 
IMC::Target m_target
 
IMC::EstimatedState m_estate
 
IMC::EstimatedStreamVelocity m_svelocity
 
bool m_got_target
 
bool m_got_estate
 
bool m_got_svelocity
 

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::FollowTarget::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Member Function Documentation

void Maneuver::FollowTarget::Task::consume ( const IMC::Target *  msg)
inline
void Maneuver::FollowTarget::Task::consume ( const IMC::EstimatedState *  msg)
inline
void Maneuver::FollowTarget::Task::consume ( const IMC::EstimatedStreamVelocity *  msg)
inline
double Maneuver::FollowTarget::Task::delta_x ( double  r,
double  u,
double  x_0_c,
double  x_actual 
)
inline
double Maneuver::FollowTarget::Task::delta_y ( double  r,
double  u,
double  y_0_c,
double  y_actual 
)
inline
double Maneuver::FollowTarget::Task::minimumDistance ( double  r,
double  u,
double  x_0_c,
double  x_actual,
double  y_0_c,
double  y_actual 
)
inline
void Maneuver::FollowTarget::Task::onMain ( void  )
inline
double Maneuver::FollowTarget::Task::x_path_derivative ( double  r,
double  u 
)
inline
double Maneuver::FollowTarget::Task::y_path_derivative ( double  r,
double  u 
)
inline

Member Data Documentation

Arguments Maneuver::FollowTarget::Task::m_args

Task arguments.

IMC::DesiredRoll Maneuver::FollowTarget::Task::m_desired_roll

Output message for desired roll.

IMC::EstimatedState Maneuver::FollowTarget::Task::m_estate
bool Maneuver::FollowTarget::Task::m_got_estate
bool Maneuver::FollowTarget::Task::m_got_svelocity
bool Maneuver::FollowTarget::Task::m_got_target
IMC::EstimatedStreamVelocity Maneuver::FollowTarget::Task::m_svelocity
IMC::Target Maneuver::FollowTarget::Task::m_target
Collaboration diagram for Maneuver::FollowTarget::Task:
Collaboration graph