nodelet_manager_sharing_tf_buffer.h
Go to the documentation of this file.
1 #pragma once
2 
11 #include <memory>
12 #include <string>
13 
14 #include <boost/shared_ptr.hpp>
15 
16 #include <nodelet/nodelet.h>
17 #include <ros/node_handle.h>
18 #include <tf2_ros/buffer.h>
20 
24 
25 namespace cras
26 {
27 
32 {
33 public:
39 
40  void init() override;
41 
42  void reset() override;
43 
44 protected:
45  ::boost::shared_ptr<::nodelet::Nodelet> createInstance(const ::std::string& lookupName) override;
46 
48  ::std::shared_ptr<::tf2_ros::Buffer> buffer;
49 
51  ::std::unique_ptr<::tf2_ros::TransformListener> listener;
52 };
53 
54 }
node_handle.h
cras::NodeletManagerSharingTfBuffer::init
void init() override
Initialize all class members.
nodelet_with_shared_tf_buffer.hpp
NodeletWithSharedTfBuffer allows you to use a tf2_ros::Buffer provided by the nodelet manager.
boost::shared_ptr
cras
Definition: any.hpp:15
cras::NodeletManager::nh
::ros::NodeHandle nh
Node handle for the ROS API services.
Definition: nodelet_manager.h:68
cras::NodeletManagerSharingTfBuffer::buffer
::std::shared_ptr<::tf2_ros::Buffer > buffer
The shared TF buffer.
Definition: nodelet_manager_sharing_tf_buffer.h:48
buffer.h
nodelet_manager.h
A customizable nodelet manager.
cras::NodeletManager
Nodelet manager with customizable instance creation mechanism.
Definition: nodelet_manager.h:31
cras::NodeletManagerSharingTfBuffer::reset
void reset() override
Do the resetting. Subclasses have to implement the logic.
cras::NodeletManagerSharingTfBuffer::createInstance
::boost::shared_ptr<::nodelet::Nodelet > createInstance(const ::std::string &lookupName) override
cras::NodeletManagerSharingTfBuffer::NodeletManagerSharingTfBuffer
NodeletManagerSharingTfBuffer(::ros::NodeHandle nh={"~"})
Create the nodelet manager.
cras::NodeletManagerSharingTfBuffer::listener
::std::unique_ptr<::tf2_ros::TransformListener > listener
TF listener filling the shared buffer.
Definition: nodelet_manager_sharing_tf_buffer.h:51
transform_listener.h
cras::TimeJumpResettable
Interface for resettable nodes and nodelets. Automatic reset on time jumps.
Definition: resettable.h:78
cras::NodeletManagerSharingTfBuffer
A nodelet manager that can share its TF buffer with cras::NodeletWithSharedTfBuffer nodelets.
Definition: nodelet_manager_sharing_tf_buffer.h:31
nodelet.h
resettable.h
Interface for resettable nodes and nodelets. Automatic reset on time jumps.
ros::NodeHandle


cras_cpp_common
Author(s): Martin Pecka
autogenerated on Tue Nov 26 2024 03:49:04