ReverseVector Class Template
Reverses the order of elements in a vector and sets the reversed vector to the blackboard. More...
Declaration
class moveit_pro::behaviors::ReverseVector<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> | |
| 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::KeyValueVector | metadata () |
template <typename InputT> | |
| BT::PortsList | providedPorts () |
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 | kPortIDInputVector = "input_vector" |
template <typename InputT> | |
| static constexpr auto | kPortIDOutputVector = "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 Name | Port Type | Object Type |
|---|---|---|
| input_vector | input | std::vector<T> |
| output_vector | output | std::vector<T> |
Definition at line 28 of file reverse_vector.hpp.
Public Member Typedefs
VectorT
|
Definition at line 31 of file reverse_vector.hpp.
Public Constructors
ReverseVector()
|
Declaration at line 34 of file reverse_vector.hpp, definition at line 19 of file reverse_vector_impl.hpp.
Public Member Functions
metadata()
|
Definition at line 29 of file core_reverse_vector_behaviors.cpp.
metadata()
|
Definition at line 47 of file core_reverse_vector_behaviors.cpp.
providedPorts()
|
Definition at line 36 of file core_reverse_vector_behaviors.cpp.
providedPorts()
|
Definition at line 53 of file core_reverse_vector_behaviors.cpp.
Private Member Functions
tick()
|
Declaration at line 40 of file reverse_vector.hpp, definition at line 33 of file reverse_vector_impl.hpp.
Public Static Functions
metadata()
| static |
Definition at line 37 of file reverse_vector.hpp.
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
| constexpr static |
Definition at line 32 of file reverse_vector.hpp.
kPortIDOutputVector
| 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.