Hiep update
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
#include <robot_nav_msgs/OccupancyGrid.h>
|
||||
#include <robot_nav_msgs/GetPlan.h>
|
||||
|
||||
#include <costmap_2d/costmap_2d_robot.h>
|
||||
#include <costmap_2d/costmap_2d.h>
|
||||
#include <costmap_2d/inflation_layer.h>
|
||||
#include <robot_costmap_2d/costmap_2d_robot.h>
|
||||
#include <robot_costmap_2d/costmap_2d.h>
|
||||
#include <robot_costmap_2d/inflation_layer.h>
|
||||
|
||||
#include <tf3/LinearMath/Quaternion.h>
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace dock_planner
|
||||
|
||||
public:
|
||||
//Params
|
||||
costmap_2d::Costmap2D* costmap_;
|
||||
robot_costmap_2d::Costmap2D* costmap_;
|
||||
|
||||
int cost_threshold_; // Threshold for obstacle detection
|
||||
double safety_distance_; // Safety distance from obstacles
|
||||
|
||||
@@ -11,9 +11,9 @@ namespace dock_planner {
|
||||
{
|
||||
public:
|
||||
DockPlanner();
|
||||
DockPlanner(std::string name, costmap_2d::Costmap2DROBOT* costmap_robot);
|
||||
DockPlanner(std::string name, robot_costmap_2d::Costmap2DROBOT* costmap_robot);
|
||||
|
||||
bool initialize(std::string name, costmap_2d::Costmap2DROBOT* costmap_robot);
|
||||
bool initialize(std::string name, robot_costmap_2d::Costmap2DROBOT* costmap_robot);
|
||||
|
||||
bool makePlan(const robot_geometry_msgs::PoseStamped& start,
|
||||
const robot_geometry_msgs::PoseStamped& goal,
|
||||
@@ -21,8 +21,8 @@ namespace dock_planner {
|
||||
|
||||
private:
|
||||
// Core components
|
||||
costmap_2d::Costmap2DROBOT* costmap_robot_;
|
||||
costmap_2d::Costmap2D* costmap_;
|
||||
robot_costmap_2d::Costmap2DROBOT* costmap_robot_;
|
||||
robot_costmap_2d::Costmap2D* costmap_;
|
||||
bool initialized_;
|
||||
std::string frame_id_;
|
||||
// ros::Publisher plan_pub_;
|
||||
|
||||
Reference in New Issue
Block a user