Go to the documentation of this file.
47 std::string global_frame) {
55 ROS_WARN(
"Planner utils have already been initialized, doing nothing.");
61 if(
setup_ && restore_defaults) {
70 limits_ = LocalPlannerLimits(config);
93 ROS_ERROR(
"Planner utils have not been initialized, please call initialize() first");
114 ROS_WARN(
"Could not transform the global plan to the frame of the controller");
boost::mutex limits_configuration_mutex_
bool getLocalPlan(const geometry_msgs::PoseStamped &global_pose, std::vector< geometry_msgs::PoseStamped > &transformed_plan)
bool getGoalPose(const tf2_ros::Buffer &tf, const std::vector< geometry_msgs::PoseStamped > &global_plan, const std::string &global_frame, geometry_msgs::PoseStamped &goal_pose)
Returns last pose in plan.
bool setPlan(const std::vector< geometry_msgs::PoseStamped > &orig_global_plan)
bool transformGlobalPlan(const tf2_ros::Buffer &tf, const std::vector< geometry_msgs::PoseStamped > &global_plan, const geometry_msgs::PoseStamped &global_robot_pose, const costmap_2d::Costmap2D &costmap, const std::string &global_frame, std::vector< geometry_msgs::PoseStamped > &transformed_plan)
Transforms the global plan of the robot from the planner frame to the frame of the costmap,...
LocalPlannerLimits limits_
void reconfigureCB(LocalPlannerLimits &config, bool restore_defaults)
Callback to update the local planner's parameters.
costmap_2d::Costmap2D * getCostmap()
costmap_2d::Costmap2D * costmap_
void initialize(tf2_ros::Buffer *tf, costmap_2d::Costmap2D *costmap, std::string global_frame)
LocalPlannerLimits default_limits_
void prunePlan(const geometry_msgs::PoseStamped &global_pose, std::vector< geometry_msgs::PoseStamped > &plan, std::vector< geometry_msgs::PoseStamped > &global_plan)
Trim off parts of the global plan that are far enough behind the robot.
std::string global_frame_
std::vector< geometry_msgs::PoseStamped > global_plan_
LocalPlannerLimits getCurrentLimits()
bool getGoal(geometry_msgs::PoseStamped &goal_pose)
base_local_planner
Author(s): Eitan Marder-Eppstein, Eric Perko, contradict@gmail.com
autogenerated on Mon Mar 6 2023 03:50:24