Skip to main content

AddToVector Class Template

Template for a behavior that pushes an object into a vector and sets the updated vector to the blackboard. More...

Declaration

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

Included Headers

#include <add_to_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>
AddToVector (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 ()

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 autokPortIDInput = "input"
template <typename InputT>
static constexpr autokPortIDVector = "vector"

Description

Template for a behavior that pushes an object into a vector and sets the updated vector to the blackboard.

Template Parameters
InputT

The type of the input object. Also determines the type of the vector.

If the vector does not exist, calling this behavior will create a new sequence with the given input as first element.

Data Port NamePort TypeObject Type
inputinputT
vectorbidirectionalstd::vector<T>

Definition at line 28 of file add_to_vector.hpp.

Public Member Typedefs

VectorT

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

Definition at line 31 of file add_to_vector.hpp.

Public Constructors

AddToVector()

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

Declaration at line 34 of file add_to_vector.hpp, definition at line 19 of file add_to_vector_impl.hpp.

Public Member Functions

metadata()

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

Definition at line 25 of file core_add_to_vector_behaviors.cpp.

providedPorts()

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

Definition at line 34 of file core_add_to_vector_behaviors.cpp.

Private Member Functions

tick()

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

Declaration at line 40 of file add_to_vector.hpp, definition at line 26 of file add_to_vector_impl.hpp.

Public Static Functions

metadata()

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

Definition at line 37 of file add_to_vector.hpp.

providedPorts()

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

Definition at line 36 of file add_to_vector.hpp.

Public Static Attributes

kPortIDInput

template <typename InputT>
constexpr auto moveit_pro::behaviors::AddToVector< InputT >::kPortIDInput = "input"
constexpr static

Definition at line 32 of file add_to_vector.hpp.

kPortIDVector

template <typename InputT>
constexpr auto moveit_pro::behaviors::AddToVector< InputT >::kPortIDVector = "vector"
constexpr static

Definition at line 33 of file add_to_vector.hpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.