DUNE: Uniform Navigational Environment
2019.02.1
|
Public Member Functions | |
Task (const std::string &name, DUNE::Tasks::Context &ctx) | |
void | onUpdateParameters (void) |
bool | canInit (const IMC::FollowTrajectory *maneuver) |
void | onPathCompletion (void) |
void | step (const IMC::EstimatedState &estate) |
bool | isFeasible (void) |
double | speed (int curr) |
double | dist (int p1, int p2) |
Public Attributes | |
IMC::DesiredSpeed | m_maneuver_speed |
double | m_last_actuation |
double | m_zero_time |
bool | m_done |
int | m_curr |
Arguments | m_args |
|
inline |
References Maneuver::FollowTrajectory::Arguments::act_step, Maneuver::FollowTrajectory::Arguments::max_actuation, Maneuver::FollowTrajectory::Arguments::max_speed, Maneuver::FollowTrajectory::Arguments::min_actuation, Maneuver::FollowTrajectory::Arguments::min_speed, Maneuver::FollowTrajectory::Arguments::mps_control, and Maneuver::FollowTrajectory::Arguments::timegap.
|
inline |
|
inline |
Function for computing the horizontal distance between two points in the trajectory.
|
inline |
Function for testing the trajectory's feasibility.
References Maneuver::FollowTrajectory::Arguments::max_speed, and Maneuver::FollowTrajectory::Arguments::mps_control.
|
inline |
|
inline |
|
inline |
Function for computing the speed for travelling to the next point.
|
inline |
References Maneuver::FollowTrajectory::Arguments::act_step, Maneuver::FollowTrajectory::Arguments::max_actuation, Maneuver::FollowTrajectory::Arguments::max_speed, Maneuver::FollowTrajectory::Arguments::min_actuation, Maneuver::FollowTrajectory::Arguments::min_speed, Maneuver::FollowTrajectory::Arguments::mps_control, Maneuver::FollowTrajectory::Arguments::timegap, and DUNE::Math::trimValue().
int Maneuver::FollowTrajectory::Task::m_curr |
Number of current waypoint number.
bool Maneuver::FollowTrajectory::Task::m_done |
Path completion flag.
double Maneuver::FollowTrajectory::Task::m_last_actuation |
Last actuation sent to the motor (used to compute actuation step.
IMC::DesiredSpeed Maneuver::FollowTrajectory::Task::m_maneuver_speed |
FollowTrajectory maneuver's speed.
double Maneuver::FollowTrajectory::Task::m_zero_time |
Time value to be used as reference.