Nodelet manager with customizable instance creation mechanism. More...
#include <nodelet_manager.h>
Public Member Functions | |
virtual void | init () |
Initialize all class members. More... | |
NodeletManager (::ros::NodeHandle nh={"~"}) | |
Create the nodelet manager. More... | |
Protected Types | |
typedef ::pluginlib::ClassLoader<::nodelet::Nodelet > | ClassLoader |
Type of the class loader used for loading nodelets. More... | |
Protected Member Functions | |
virtual ::boost::shared_ptr<::nodelet::Nodelet > | createInstance (const ::std::string &lookupName) |
Create an instance of the given type. More... | |
Protected Attributes | |
::std::unique_ptr< ClassLoader > | classLoader |
Class loader used for loading nodelets. More... | |
::std::unique_ptr<::nodelet::Loader > | loader |
Nodelet loader that loads and runs the nodelets. More... | |
::std::unique_ptr<::cras::LoaderROS > | loaderRos |
ROS API for the nodelet manager. More... | |
::ros::NodeHandle | nh |
Node handle for the ROS API services. More... | |
Nodelet manager with customizable instance creation mechanism.
The standard usage of this class is creating its instance, calling init() and then ros::spin().
Definition at line 31 of file nodelet_manager.h.
|
protected |
Type of the class loader used for loading nodelets.
Definition at line 54 of file nodelet_manager.h.
|
explicit |
Create the nodelet manager.
[in] | nh | The nodehandle used for nodelet load/unload ROS services. |
|
protected |
Create an instance of the given type.
[in] | lookupName | The type to create instance of. |
|
virtual |
Initialize all class members.
Reimplemented in cras::NodeletManagerSharingTfBuffer.
|
protected |
Class loader used for loading nodelets.
Definition at line 57 of file nodelet_manager.h.
|
protected |
Nodelet loader that loads and runs the nodelets.
Definition at line 62 of file nodelet_manager.h.
|
protected |
ROS API for the nodelet manager.
Definition at line 65 of file nodelet_manager.h.
|
protected |
Node handle for the ROS API services.
Definition at line 68 of file nodelet_manager.h.