34 #ifndef DWB_CRITICS__GOAL_ALIGN_HPP_
35 #define DWB_CRITICS__GOAL_ALIGN_HPP_
39 #include "dwb_critics/goal_dist.hpp"
56 : forward_point_distance_(0.0) {}
57 void onInit()
override;
59 const geometry_msgs::msg::Pose & pose,
const nav_2d_msgs::msg::Twist2D & vel,
60 const geometry_msgs::msg::Pose & goal,
const nav_msgs::msg::Path & global_plan)
override;
61 double scorePose(
const geometry_msgs::msg::Pose & pose)
override;
64 double forward_point_distance_;
Scores trajectories based on whether the robot ends up pointing toward the eventual goal.
bool prepare(const geometry_msgs::msg::Pose &pose, const nav_2d_msgs::msg::Twist2D &vel, const geometry_msgs::msg::Pose &goal, const nav_msgs::msg::Path &global_plan) override
Prior to evaluating any trajectories, look at contextual information constant across all trajectories...
double scorePose(const geometry_msgs::msg::Pose &pose) override
Retrieve the score for a single pose.
Scores trajectories based on how far along the global path they end up.