Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cras::NodeletManagerSharingTfBuffer Class Reference

A nodelet manager that can share its TF buffer with cras::NodeletWithSharedTfBuffer nodelets. More...

#include <nodelet_manager_sharing_tf_buffer.h>

Inheritance diagram for cras::NodeletManagerSharingTfBuffer:
Inheritance graph
[legend]

Public Member Functions

void init () override
 Initialize all class members. More...
 
 NodeletManagerSharingTfBuffer (::ros::NodeHandle nh={"~"})
 Create the nodelet manager. More...
 
- Public Member Functions inherited from cras::NodeletManager
 NodeletManager (::ros::NodeHandle nh={"~"})
 Create the nodelet manager. More...
 

Protected Member Functions

::boost::shared_ptr<::nodelet::NodeletcreateInstance (const ::std::string &lookupName) override
 
- Protected Member Functions inherited from cras::NodeletManager
virtual ::boost::shared_ptr<::nodelet::NodeletcreateInstance (const ::std::string &lookupName)
 Create an instance of the given type. More...
 

Protected Attributes

::std::shared_ptr<::tf2_ros::Bufferbuffer
 The shared TF buffer. More...
 
::std::unique_ptr<::tf2_ros::TransformListenerlistener
 TF listener filling the shared buffer. More...
 
- Protected Attributes inherited from cras::NodeletManager
::std::unique_ptr< ClassLoaderclassLoader
 Class loader used for loading nodelets. More...
 
::std::unique_ptr<::nodelet::Loaderloader
 Nodelet loader that loads and runs the nodelets. More...
 
::std::unique_ptr<::cras::LoaderROSloaderRos
 ROS API for the nodelet manager. More...
 
::ros::NodeHandle nh
 Node handle for the ROS API services. More...
 

Additional Inherited Members

- Protected Types inherited from cras::NodeletManager
typedef ::pluginlib::ClassLoader<::nodelet::NodeletClassLoader
 Type of the class loader used for loading nodelets. More...
 

Detailed Description

A nodelet manager that can share its TF buffer with cras::NodeletWithSharedTfBuffer nodelets.

Definition at line 30 of file nodelet_manager_sharing_tf_buffer.h.

Constructor & Destructor Documentation

◆ NodeletManagerSharingTfBuffer()

cras::NodeletManagerSharingTfBuffer::NodeletManagerSharingTfBuffer ( ::ros::NodeHandle  nh = {"~"})
explicit

Create the nodelet manager.

Parameters
[in]nhThe nodehandle used for nodelet load/unload ROS services.

Member Function Documentation

◆ createInstance()

::boost::shared_ptr<::nodelet::Nodelet> cras::NodeletManagerSharingTfBuffer::createInstance ( const ::std::string &  lookupName)
overrideprotected

◆ init()

void cras::NodeletManagerSharingTfBuffer::init ( )
overridevirtual

Initialize all class members.

Reimplemented from cras::NodeletManager.

Member Data Documentation

◆ buffer

::std::shared_ptr<::tf2_ros::Buffer> cras::NodeletManagerSharingTfBuffer::buffer
protected

The shared TF buffer.

Definition at line 45 of file nodelet_manager_sharing_tf_buffer.h.

◆ listener

::std::unique_ptr<::tf2_ros::TransformListener> cras::NodeletManagerSharingTfBuffer::listener
protected

TF listener filling the shared buffer.

Definition at line 48 of file nodelet_manager_sharing_tf_buffer.h.


The documentation for this class was generated from the following file:


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sat Jun 17 2023 02:32:53