57 const geometry_msgs::Pose2D& goal,
const nav_2d_msgs::Path2D& global_plan)
61 ROS_ERROR_NAMED(
"ObstacleFootprintCritic",
"Footprint spec is empty, maybe missing call to setFootprint?");
69 unsigned int cell_x, cell_y;
76 const nav_2d_msgs::Polygon2D& footprint)
78 unsigned char footprint_cost = 0;
82 unsigned char cost = costmap(index.x, index.y);
92 footprint_cost = std::max(cost, footprint_cost);
96 return footprint_cost;
nav_2d_msgs::Polygon2D footprintFromParams(ros::NodeHandle &nh, bool write=true)
static const unsigned char NO_INFORMATION
ros::NodeHandle critic_nh_
#define ROS_ERROR_NAMED(name,...)
static const unsigned char LETHAL_OBSTACLE
nav_2d_msgs::Polygon2D movePolygonToPose(const nav_2d_msgs::Polygon2D &polygon, const geometry_msgs::Pose2D &pose)
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
bool worldToGridBounded(const NavGridInfo &info, double wx, double wy, unsigned int &mx, unsigned int &my)