39 #include <boost/thread/mutex.hpp> 40 #include <boost/ptr_container/ptr_map.hpp> 45 #include <nodelet/NodeletLoad.h> 46 #include <nodelet/NodeletUnload.h> 47 #include <nodelet/NodeletList.h> 81 bool serviceLoad(::nodelet::NodeletLoad::Request& req, ::nodelet::NodeletLoad::Response& res);
89 bool serviceUnload(::nodelet::NodeletUnload::Request& req, ::nodelet::NodeletUnload::Response& res);
96 bool unload(const ::std::string& name);
104 bool serviceList(::nodelet::NodeletList::Request& req, ::nodelet::NodeletList::Response& res);
bool serviceLoad(::nodelet::NodeletLoad::Request &req, ::nodelet::NodeletLoad::Response &res)
Load a nodelet.
::ros::ServiceServer unload_server_
Service server for unload_nodelet service.
::boost::mutex lock_
Lock protecting access to parent_ and bond_map_.
::boost::ptr_map<::std::string, ::bond::Bond > M_stringToBond
Type of the map of nodelet name->bond.
::ros::ServiceServer list_server_
Service server for list service.
::ros::NodeHandle nh_
The node handle to use for the advertised services.
::nodelet::Loader * parent_
The actual nodelet loader to use.
::ros::ServiceServer load_server_
Service server for load_nodelet service.
bool unload(const ::std::string &name)
Unload a nodelet of the given name.
M_stringToBond bond_map_
Map of nodelet name->bond.
LoaderROS(::nodelet::Loader *parent, const ::ros::NodeHandle &nh)
Construct the ROS interface for the given loader.
bool serviceList(::nodelet::NodeletList::Request &req, ::nodelet::NodeletList::Response &res)
List all loaded nodelets.
::ros::AsyncSpinner bond_spinner_
Spinner of bond_callback_queue_.
bool serviceUnload(::nodelet::NodeletUnload::Request &req, ::nodelet::NodeletUnload::Response &res)
Unload a nodelet.
ROS interface for loading/unloading nodelets (internally using nodelet::Loader to do the work)...
::ros::CallbackQueue bond_callback_queue_
Callback queue used for the created bonds.