ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I think you mean move_base
not amcl
who's printing Got new plan and Goal reached. AMCL
doesn't know or particularly care about navigation.
The global planners are called to generate a plan from position A to position B. The local planners are the ones that are deciding when the goal is reached. There's no trivial way for the global planner to know this information, check the interface for it [1]. You could in theory create a local planner and a global planner that have a topic they talk over about such things, but nothing out of the box.
What are you trying to accomplish where the global planner needs to know that information? When the controller says its done, the global planner is stopped being called at the replanning rate. I'm not sure what having that information would accomplish if its not being called anymore to make a new plan.
[1] https://github.com/ros-planning/navigation/blob/melodic-devel/nav_core/include/nav_core/base_global_planner.h