Skip to main content

ReverseVector Class Template

Reverses the order of elements in a vector and sets the reversed vector to the blackboard. More...

Declaration

template <typename InputT>
class moveit_pro::behaviors::ReverseVector<InputT> { ... }

Included Headers

#include <reverse_vector.hpp>

Base class

classSharedResourcesNode<BehaviorTreeNodeT>

The SharedResourcesNode class provides a BehaviorContext object when constructing a BehaviorTree.Cpp node. More...

Public Member Typedefs Index

template <typename InputT>
usingVectorT = std::vector< InputT >

Public Constructors Index

template <typename InputT>
ReverseVector (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > &shared_resources)

Public Member Functions Index

template <typename InputT>
BT::KeyValueVectormetadata ()
template <typename InputT>
BT::PortsListprovidedPorts ()
template <typename InputT>
BT::KeyValueVectormetadata ()
template <typename InputT>
BT::PortsListprovidedPorts ()

Private Member Functions Index

template <typename InputT>
BT::NodeStatustick () override

Public Static Functions Index

template <typename InputT>
static BT::PortsListprovidedPorts ()
template <typename InputT>
static BT::KeyValueVectormetadata ()

Public Static Attributes Index

template <typename InputT>
static constexpr autokPortIDInputVector = "input_vector"
template <typename InputT>
static constexpr autokPortIDOutputVector = "output_vector"

Description

Reverses the order of elements in a vector and sets the reversed vector to the blackboard.

Template Parameters
InputT

The type of the input objects in the vector.

If the input vector does not exist, calling this behavior will fail. If it exists but is empty, the output will be an empty vector.

Data Port NamePort TypeObject Type
input_vectorinputstd::vector<T>
output_vectoroutputstd::vector<T>

Definition at line 28 of file reverse_vector.hpp.

Public Member Typedefs

VectorT

template <typename InputT>
using moveit_pro::behaviors::ReverseVector< InputT >::VectorT = std::vector<InputT>

Definition at line 31 of file reverse_vector.hpp.

Public Constructors

ReverseVector()

template <typename InputT>
moveit_pro::behaviors::ReverseVector< InputT >::ReverseVector (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > & shared_resources)

Declaration at line 34 of file reverse_vector.hpp, definition at line 19 of file reverse_vector_impl.hpp.

Public Member Functions

metadata()

template <typename InputT>
BT::KeyValueVector moveit_pro::behaviors::ReverseVector< geometry_msgs::msg::PoseStamped >::metadata ()

Definition at line 29 of file core_reverse_vector_behaviors.cpp.

metadata()

template <typename InputT>
BT::KeyValueVector moveit_pro::behaviors::ReverseVector< BT::Any >::metadata ()

Definition at line 47 of file core_reverse_vector_behaviors.cpp.

providedPorts()

template <typename InputT>
BT::PortsList moveit_pro::behaviors::ReverseVector< geometry_msgs::msg::PoseStamped >::providedPorts ()

Definition at line 36 of file core_reverse_vector_behaviors.cpp.

providedPorts()

template <typename InputT>
BT::PortsList moveit_pro::behaviors::ReverseVector< BT::Any >::providedPorts ()

Definition at line 53 of file core_reverse_vector_behaviors.cpp.

Private Member Functions

tick()

template <typename InputT>
BT::NodeStatus moveit_pro::behaviors::ReverseVector< InputT >::tick ()

Declaration at line 40 of file reverse_vector.hpp, definition at line 33 of file reverse_vector_impl.hpp.

Public Static Functions

metadata()

template <typename InputT>
BT::KeyValueVector moveit_pro::behaviors::ReverseVector< InputT >::metadata ()
static

Definition at line 37 of file reverse_vector.hpp.

providedPorts()

template <typename InputT>
BT::PortsList moveit_pro::behaviors::ReverseVector< InputT >::providedPorts ()
static

Declaration at line 36 of file reverse_vector.hpp, definition at line 26 of file reverse_vector_impl.hpp.

Public Static Attributes

kPortIDInputVector

template <typename InputT>
constexpr auto moveit_pro::behaviors::ReverseVector< InputT >::kPortIDInputVector = "input_vector"
constexpr static

Definition at line 32 of file reverse_vector.hpp.

kPortIDOutputVector

template <typename InputT>
constexpr auto moveit_pro::behaviors::ReverseVector< InputT >::kPortIDOutputVector = "output_vector"
constexpr static

Definition at line 33 of file reverse_vector.hpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.