16#ifndef YASMIN_ROS__TF_BUFFER_STATE_HPP_
17#define YASMIN_ROS__TF_BUFFER_STATE_HPP_
22#include <rclcpp/rclcpp.hpp>
24#if __has_include(<tf2_ros/buffer.hpp>)
25#include <tf2_ros/buffer.hpp>
27#include <tf2_ros/buffer.h>
30#if __has_include(<tf2_ros/transform_listener.hpp>)
31#include <tf2_ros/transform_listener.hpp>
33#include <tf2_ros/transform_listener.h>
std::shared_ptr< Blackboard > SharedPtr
Shared pointer type for Blackboard.
Definition blackboard.hpp:100
Represents a state in a state machine.
Definition state.hpp:49
rclcpp::Node::SharedPtr node_
Node used to create the tf2 listener subscriptions.
Definition tf_buffer_state.hpp:77
TfBufferState()
Shared pointer type for TfBufferState.
Definition tf_buffer_state.cpp:44
void configure() override
Read the configured parameters.
Definition tf_buffer_state.cpp:68
std::string execute(yasmin::Blackboard::SharedPtr blackboard) override
Create the tf2 buffer/listener pair and store them in the blackboard.
Definition tf_buffer_state.cpp:72
double cache_time_sec_
Buffer cache duration in seconds.
Definition tf_buffer_state.hpp:79
Definition action_state.hpp:37
#define YASMIN_PTR_ALIASES(ClassName)
Macro to define all pointer aliases for a class.
Definition types.hpp:52