48 planner_plugin_loader_(
"mbf_abstract_core",
"mbf_abstract_core::AbstractPlanner"),
49 controller_plugin_loader_(
"mbf_abstract_core",
"mbf_abstract_core::AbstractController"),
50 recovery_plugin_loader_(
"mbf_abstract_core",
"mbf_abstract_core::AbstractRecovery")
62 ROS_INFO(
"Load global planner plugin.");
69 ROS_FATAL_STREAM(
"Failed to load the " << planner_type <<
" planner, are you sure it is properly registered" 70 <<
" and that the containing library is built? Exception: " << ex.what());
72 ROS_INFO(
"Global planner plugin loaded.");
78 const std::string& name,
87 const std::string& controller_type)
94 ROS_INFO_STREAM(
"MBF_core-based local planner plugin " << controller_type <<
" loaded");
99 <<
" local planner, are you sure it's properly registered" 100 <<
" and that the containing library is built? Exception: " << ex.what());
102 return controller_ptr;
106 const std::string& name,
113 const std::string& recovery_type)
124 ROS_FATAL_STREAM(
"Failed to load the " << recovery_type <<
" recovery behavior, are you sure it's properly registered" 125 <<
" and that the containing library is built? Exception: " << ex.what());
131 const std::string& name,
virtual bool initializeRecoveryPlugin(const std::string &name, const mbf_abstract_core::AbstractRecovery::Ptr &behavior_ptr)
Pure virtual method, the derived class has to implement. Depending on the plugin base class...
virtual mbf_abstract_core::AbstractRecovery::Ptr loadRecoveryPlugin(const std::string &recovery_type)
Loads a Recovery plugin associated with given recovery type parameter.
virtual bool initializePlannerPlugin(const std::string &name, const mbf_abstract_core::AbstractPlanner::Ptr &planner_ptr)
Empty init method. Nothing to initialize.
pluginlib::ClassLoader< mbf_abstract_core::AbstractPlanner > planner_plugin_loader_
pluginlib::ClassLoader< mbf_abstract_core::AbstractController > controller_plugin_loader_
virtual ~SimpleNavigationServer()
Destructor.
#define ROS_FATAL_STREAM(args)
virtual mbf_abstract_core::AbstractController::Ptr loadControllerPlugin(const std::string &controller_type)
Loads the plugin associated with the given controller type parameter.
virtual mbf_abstract_core::AbstractPlanner::Ptr loadPlannerPlugin(const std::string &planner_type)
Loads the plugin associated with the given planner_type parameter.
#define ROS_INFO_STREAM(args)
SimpleNavigationServer(const TFPtr &tf_listener_ptr)
Constructor.
virtual void startActionServers()
virtual void initializeServerComponents()
virtual bool initializeControllerPlugin(const std::string &name, const mbf_abstract_core::AbstractController::Ptr &controller_ptr)
Empty init method. Nothing to initialize.
pluginlib::ClassLoader< mbf_abstract_core::AbstractRecovery > recovery_plugin_loader_