AddToVector Class Template
Template for a behavior that pushes an object into a vector and sets the updated vector to the blackboard. More...
Declaration
class moveit_pro::behaviors::AddToVector<InputT> { ... }
Included Headers
Base class
| class | SharedResourcesNode<BehaviorTreeNodeT> |
|
The SharedResourcesNode class provides a BehaviorContext object when constructing a BehaviorTree.Cpp node. More... | |
Public Member Typedefs Index
template <typename InputT> | |
| using | VectorT = 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::KeyValueVector | metadata () |
template <typename InputT> | |
| BT::PortsList | providedPorts () |
Private Member Functions Index
template <typename InputT> | |
| BT::NodeStatus | tick () override |
Public Static Functions Index
template <typename InputT> | |
| static BT::PortsList | providedPorts () |
template <typename InputT> | |
| static BT::KeyValueVector | metadata () |
Public Static Attributes Index
template <typename InputT> | |
| static constexpr auto | kPortIDInput = "input" |
template <typename InputT> | |
| static constexpr auto | kPortIDVector = "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 Name | Port Type | Object Type |
|---|---|---|
| input | input | T |
| vector | bidirectional | std::vector<T> |
Definition at line 28 of file add_to_vector.hpp.
Public Member Typedefs
VectorT
|
Definition at line 31 of file add_to_vector.hpp.
Public Constructors
AddToVector()
|
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()
|
Definition at line 25 of file core_add_to_vector_behaviors.cpp.
providedPorts()
|
Definition at line 34 of file core_add_to_vector_behaviors.cpp.
Private Member Functions
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()
| static |
Definition at line 37 of file add_to_vector.hpp.
providedPorts()
| static |
Definition at line 36 of file add_to_vector.hpp.
Public Static Attributes
kPortIDInput
| constexpr static |
Definition at line 32 of file add_to_vector.hpp.
kPortIDVector
| 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.