A Pre-Planning class will be run before the planner.
Use this class to alter the input for your planner. You can implement
- a generic support for goal tolerances
- generic checks if the start/goal pose are within map bounds
- a way to update the global map just before the planning
- alter the map to add specific information for the planner
- etc.
The class offers two methods. Following the standard-approach of ros-navigation plugins, call first initialize to initialize the instance. Then you can use the instance by calling preProcess
struct MyPrePlanning : public PrePlanningInterface{
bool
{}
void
};
MyPrePlanning pre_planning;
pre_planning.initialize("my_pre_planning");
if(pre_planning.preProcess(...)) {
std::cout << "pre_planning worked" << std::endl;
}
else {
std::cerr << "pre_planning failed" << std::endl;
}
Definition at line 78 of file pre_planning_interface.hpp.