This commit is contained in:
2026-03-21 19:03:11 +07:00
parent 56d05e4322
commit d51ecc0986
2 changed files with 6 additions and 7 deletions

View File

@@ -80,6 +80,7 @@ namespace dock_planner
initialized_ = true;
// ROS_WARN("[dock_planner] check_free_space_(%d)", check_free_space_);
}
return true;
}
bool DockPlanner::makePlan(const robot_geometry_msgs::PoseStamped& start,
@@ -109,7 +110,6 @@ namespace dock_planner
pose.pose.orientation = planMoveToDock[i].orientation;
plan.push_back(pose);
}
publishPlan(plan);
return true;
}
@@ -123,12 +123,12 @@ namespace dock_planner
// }
// Export factory function
static boost::shared_ptr<robot_nav_core::BaseGlobalPlanner> dock_planner_plugin() {
return boost::make_shared<dock_planner::DockPlanner>();
robot_nav_core::BaseGlobalPlanner::Ptr DockPlanner::create() {
return std::make_shared<dock_planner::DockPlanner>();
}
} // namespace dock_planner
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
BOOST_DLL_ALIAS(dock_planner::dock_planner_plugin, DockPlanner)
BOOST_DLL_ALIAS(dock_planner::DockPlanner::create, DockPlanner)