Class PreferForwardCritic

Inheritance Relationships

Base Type

  • public dwb_core::TrajectoryCritic

Class Documentation

class PreferForwardCritic : public dwb_core::TrajectoryCritic

Penalize trajectories with move backwards and/or turn too much.

Has three different scoring conditions: 1) If the trajectory’s x velocity is negative, return the penalty 2) If the trajectory’s x is low and the theta is also low, return the penalty. 3) Otherwise, return a scaled version of the trajectory’s theta.

Public Functions

inline PreferForwardCritic()
void onInit() override
virtual double scoreTrajectory(const dwb_msgs::msg::Trajectory2D &traj) override