Possible to require a replan if sensor is triggered?
I have a fixed distance ultrasonic sensor that has a significant blind spot in its use (I am unable to swap this sensor or change this location). If I were to incorporate it into the ROS navigation stack, the robot will try to evade an obstacle, but then just crash into the side of the obstacle.
A better solution for the environment we will be handling currently is to have the robot stop completely if the Ultrsonic is triggered. If some time passes as the Ultrasound is still triggered, the robot will replan and try a different corridor altogether. At no point should the robot even attempt to pass the obstacle in question.
Is it possible for such an implementation to be done while still working with a tradition ROS navigation stack? How would I go about doing so?