DUNE: Uniform Navigational Environment  2.3.1
Maneuver::FollowTrajectory::Task Struct Reference

Public Member Functions

 Task (const std::string &name, DUNE::Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void onInit (const IMC::FollowTrajectory *maneuver)
 
void onPathCompletion (void)
 
void step (const IMC::EstimatedState &estate)
 
bool isFeasible (void)
 
double dist (int p1, int p2)
 

Public Attributes

bool m_ignore_time
 
IMC::DesiredSpeed m_maneuver_speed
 
double m_last_actuation
 
double m_zero_time
 
bool m_done
 
int m_curr
 
Arguments m_args
 

Constructor & Destructor Documentation

Member Function Documentation

double Maneuver::FollowTrajectory::Task::dist ( int  p1,
int  p2 
)
inline

Function for computing the horizontal distance between two points in the trajectory.

Referenced by isFeasible(), and step().

bool Maneuver::FollowTrajectory::Task::isFeasible ( void  )
inline

Function for testing the trajectory's feasibility.

References dist(), m_args, Maneuver::FollowTrajectory::Arguments::max_speed, and Maneuver::FollowTrajectory::Arguments::mps_control.

Referenced by onInit().

void Maneuver::FollowTrajectory::Task::onInit ( const IMC::FollowTrajectory *  maneuver)
inline
void Maneuver::FollowTrajectory::Task::onPathCompletion ( void  )
inline

References m_done.

void Maneuver::FollowTrajectory::Task::onUpdateParameters ( void  )
inline

Member Data Documentation

Arguments Maneuver::FollowTrajectory::Task::m_args

Task Arguments.

Referenced by isFeasible(), step(), and Task().

int Maneuver::FollowTrajectory::Task::m_curr

Number of current waypoint number.

Referenced by onInit(), and step().

bool Maneuver::FollowTrajectory::Task::m_done

Path completion flag.

Referenced by onInit(), onPathCompletion(), and step().

bool Maneuver::FollowTrajectory::Task::m_ignore_time

Flag on whether or not the time in the waypoints shall be disregarded or not.

Referenced by onInit(), and step().

double Maneuver::FollowTrajectory::Task::m_last_actuation

Last actuation sent to the motor (used to compute actuation step.

Referenced by onInit(), and step().

IMC::DesiredSpeed Maneuver::FollowTrajectory::Task::m_maneuver_speed

FollowTrajectory maneuver's speed.

Referenced by onInit(), and step().

double Maneuver::FollowTrajectory::Task::m_zero_time

Time value to be used as reference.

Referenced by onInit(), and step().

Collaboration diagram for Maneuver::FollowTrajectory::Task:
Collaboration graph