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 }
Provides overrides of canTransform() that can be interrupted. Normally, canTransform() waits until tr...
const ::std::shared_ptr<::tf2::BufferCore > parentBuffer
If not null, this class relays all lookups to parentBuffer.
bool ok() const override
Whether it is OK to continue sleeping. If false, a pending sleep() should stop as soon as possible...
TF buffer whose functions with timeout can be interrupted.
const ::nodelet::Nodelet & nodelet
The stateful nodelet to be aware of.
static const int DEFAULT_CACHE_TIME
NodeletAwareTFBuffer(const ::nodelet::Nodelet &nodelet, const ::ros::Duration &cacheTime=::ros::Duration(::tf2::BufferCore::DEFAULT_CACHE_TIME))
Create the buffer.
Definition: any.hpp:15


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