nodelet_aware_tf_buffer.h
Go to the documentation of this file.
1 #pragma once
2 
11 #include <memory>
12 
13 #include <nodelet/nodelet.h>
14 #include <ros/duration.h>
15 #include <tf2/buffer_core.h>
16 
18 
19 namespace cras
20 {
21 
28 {
29 public:
35  explicit NodeletAwareTFBuffer(const ::nodelet::Nodelet& nodelet,
36  const ::ros::Duration& cacheTime = ::ros::Duration(::tf2::BufferCore::DEFAULT_CACHE_TIME));
37 
43  NodeletAwareTFBuffer(const ::nodelet::Nodelet& nodelet,
44  const ::std::shared_ptr<::tf2::BufferCore>& parentBuffer);
45 
46  ~NodeletAwareTFBuffer() override;
47 
48  bool ok() const override;
49 
50 protected:
52  const ::nodelet::Nodelet& nodelet;
53 };
54 
55 }
interruptible_buffer.h
TF buffer whose functions with timeout can be interrupted.
cras::NodeletAwareTFBuffer::ok
bool ok() const override
Whether it is OK to continue sleeping. If false, a pending sleep() should stop as soon as possible.
cras::InterruptibleTFBuffer
Provides overrides of canTransform() that can be interrupted. Normally, canTransform() waits until tr...
Definition: interruptible_buffer.h:42
cras
Definition: any.hpp:15
cras::NodeletAwareTFBuffer::nodelet
const ::nodelet::Nodelet & nodelet
The stateful nodelet to be aware of.
Definition: nodelet_aware_tf_buffer.h:52
cras::NodeletAwareTFBuffer::NodeletAwareTFBuffer
NodeletAwareTFBuffer(const ::nodelet::Nodelet &nodelet, const ::ros::Duration &cacheTime=::ros::Duration(::tf2::BufferCore::DEFAULT_CACHE_TIME))
Create the buffer.
duration.h
buffer_core.h
cras::NodeletAwareTFBuffer
Definition: nodelet_aware_tf_buffer.h:27
nodelet
nodelet.h
tf2::BufferCore::DEFAULT_CACHE_TIME
static const int DEFAULT_CACHE_TIME
cras::NodeletAwareTFBuffer::~NodeletAwareTFBuffer
~NodeletAwareTFBuffer() override
ros::Duration
cras::InterruptibleTFBuffer::parentBuffer
const ::std::shared_ptr<::tf2::BufferCore > parentBuffer
If not null, this class relays all lookups to parentBuffer.
Definition: interruptible_buffer.h:369


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