How to update the navigation goal during the navigation?
I am developing a robot to perform pick and place tasks while navigation through a give map. For that I am searching for a way to update my navigation goals once the robot detect the objects.
As an example If my robot moves one waypoint to another waypoint in the map, If the robot detects an object during the navigation the robot should stop the current navigation task and it should navigate to the detected object.
How can I perform such a task using the ROS navigation stack?