Catch goal status in custom global planner
I wrote a global planner following this tutorial http://wiki.ros.org/navigation/Tutori....
In this global planner, I want to know when the goal is reach. When acml is launch it constantly send INFO like "Got new plan", "Goal reached". How can I acess this info in my global planner?
I've try to suscribe to "/move_base/status" and wirte a callback that will check the status but since I don't have a main() function I can't call ros::spin() without blocking the execution of my planner (in spin() loop).