35 #ifndef DWB_CRITICS__OBSTACLE_FOOTPRINT_HPP_
36 #define DWB_CRITICS__OBSTACLE_FOOTPRINT_HPP_
39 #include "dwb_critics/base_obstacle.hpp"
43 typedef std::vector<geometry_msgs::msg::Point> Footprint;
51 Footprint getOrientedFootprint(
52 const geometry_msgs::msg::Pose2D & pose,
53 const Footprint & footprint_spec);
69 const geometry_msgs::msg::Pose2D & pose,
const nav_2d_msgs::msg::Twist2D & vel,
70 const geometry_msgs::msg::Pose2D & goal,
const nav_2d_msgs::msg::Path2D & global_plan)
override;
71 double scorePose(
const geometry_msgs::msg::Pose2D & pose)
override;
73 const geometry_msgs::msg::Pose2D & pose,
74 const Footprint & oriented_footprint);
75 double getScale()
const override {
return costmap_->
getResolution() * scale_;}
86 double lineCost(
int x0,
int x1,
int y0,
int y1);
96 Footprint footprint_spec_;
Uses costmap 2d to assign negative costs if a circular robot would collide at any point of the trajec...
double getResolution() const
Accessor for the resolution of the costmap.