ROS interface for loading/unloading nodelets (internally using nodelet::Loader to do the work). More...
#include <loader_ros.h>
Public Member Functions | |
LoaderROS (::nodelet::Loader *parent, const ::ros::NodeHandle &nh) | |
Construct the ROS interface for the given loader. More... | |
Protected Types | |
typedef ::boost::ptr_map<::std::string, ::bond::Bond > | M_stringToBond |
Type of the map of nodelet name->bond. More... | |
Protected Member Functions | |
bool | serviceList (::nodelet::NodeletList::Request &req, ::nodelet::NodeletList::Response &res) |
List all loaded nodelets. More... | |
bool | serviceLoad (::nodelet::NodeletLoad::Request &req, ::nodelet::NodeletLoad::Response &res) |
Load a nodelet. More... | |
bool | serviceUnload (::nodelet::NodeletUnload::Request &req, ::nodelet::NodeletUnload::Response &res) |
Unload a nodelet. More... | |
bool | unload (const ::std::string &name) |
Unload a nodelet of the given name. More... | |
Protected Attributes | |
::ros::CallbackQueue | bond_callback_queue_ |
Callback queue used for the created bonds. More... | |
M_stringToBond | bond_map_ |
Map of nodelet name->bond. More... | |
::ros::AsyncSpinner | bond_spinner_ |
Spinner of bond_callback_queue_. More... | |
::ros::ServiceServer | list_server_ |
Service server for list service. More... | |
::ros::ServiceServer | load_server_ |
Service server for load_nodelet service. More... | |
::boost::mutex | lock_ |
Lock protecting access to parent_ and bond_map_. More... | |
::ros::NodeHandle | nh_ |
The node handle to use for the advertised services. More... | |
::nodelet::Loader * | parent_ |
The actual nodelet loader to use. More... | |
::ros::ServiceServer | unload_server_ |
Service server for unload_nodelet service. More... | |
ROS interface for loading/unloading nodelets (internally using nodelet::Loader to do the work).
Advertised services are:
Definition at line 64 of file loader_ros.h.
|
protected |
Type of the map of nodelet name->bond.
Definition at line 131 of file loader_ros.h.
cras::LoaderROS::LoaderROS | ( | ::nodelet::Loader * | parent, |
const ::ros::NodeHandle & | nh | ||
) |
Construct the ROS interface for the given loader.
[in] | parent | The loader to use for the actual nodelet loading/unloading. |
[in] | nh | The node handle to use for the advertised services. |
|
protected |
List all loaded nodelets.
[in] | req | Unused. |
[out] | res | The loaded nodelet names. |
|
protected |
Load a nodelet.
[in] | req | Parameters of the nodelet. |
[out] | res | Whether the loading succeeded. |
|
protected |
Unload a nodelet.
[in] | req | Parameters of the nodelet. |
[out] | res | Whether the unloading succeeded. |
|
protected |
Unload a nodelet of the given name.
[in] | name | Name of the nodelet to unload. |
|
protected |
Callback queue used for the created bonds.
Definition at line 125 of file loader_ros.h.
|
protected |
Map of nodelet name->bond.
Definition at line 134 of file loader_ros.h.
|
protected |
Spinner of bond_callback_queue_.
Definition at line 128 of file loader_ros.h.
|
protected |
Service server for list service.
Definition at line 119 of file loader_ros.h.
|
protected |
Service server for load_nodelet service.
Definition at line 113 of file loader_ros.h.
|
protected |
Lock protecting access to parent_ and bond_map_.
Definition at line 122 of file loader_ros.h.
|
protected |
The node handle to use for the advertised services.
Definition at line 110 of file loader_ros.h.
|
protected |
The actual nodelet loader to use.
Definition at line 107 of file loader_ros.h.
|
protected |
Service server for unload_nodelet service.
Definition at line 116 of file loader_ros.h.