34 #ifndef DWB_CRITICS__PATH_ALIGN_HPP_
35 #define DWB_CRITICS__PATH_ALIGN_HPP_
39 #include "dwb_critics/path_dist.hpp"
60 : zero_scale_(
false), forward_point_distance_(0.0) {}
61 void onInit()
override;
63 const geometry_msgs::msg::Pose & pose,
const nav_2d_msgs::msg::Twist2D & vel,
64 const geometry_msgs::msg::Pose & goal,
const nav_msgs::msg::Path & global_plan)
override;
65 double getScale()
const override;
66 double scorePose(
const geometry_msgs::msg::Pose & pose)
override;
70 double forward_point_distance_;
Scores trajectories based on how far from the global path the front of the robot ends up.
double scorePose(const geometry_msgs::msg::Pose &pose) override
Retrieve the score for a single pose.
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...
Scores trajectories based on how far from the global path they end up.