LoadMultipleFromYaml Class Template
Loads types from a YAML file, and returns them as a vector in an output port. More...
Declaration
class moveit_pro::behaviors::LoadMultipleFromYaml<T> { ... }
Included Headers
Base class
| class | SharedResourcesNode<BehaviorTreeNodeT> |
|
The SharedResourcesNode class provides a BehaviorContext object when constructing a BehaviorTree.Cpp node. More... | |
Public Constructors Index
template <typename T> | |
| LoadMultipleFromYaml (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) | |
Public Member Functions Index
template <typename T> | |
| BT::NodeStatus | tick () override |
template <typename T> | |
| BT::PortsList | providedPorts () |
template <typename T> | |
| BT::KeyValueVector | metadata () |
template <typename T> | |
| BT::PortsList | providedPorts () |
template <typename T> | |
| BT::KeyValueVector | metadata () |
template <typename T> | |
| BT::PortsList | providedPorts () |
template <typename T> | |
| BT::KeyValueVector | metadata () |
template <typename T> | |
| BT::PortsList | providedPorts () |
template <typename T> | |
| BT::KeyValueVector | metadata () |
template <typename T> | |
| BT::PortsList | providedPorts () |
template <typename T> | |
| BT::KeyValueVector | metadata () |
Public Static Functions Index
template <typename T> | |
| static BT::PortsList | providedPorts () |
template <typename T> | |
| static BT::KeyValueVector | metadata () |
Public Static Attributes Index
template <typename T> | |
| static const char | kPortIDInput[] = "file_path" |
template <typename T> | |
| static const char | kPortIDOutput[] = "output" |
Description
Loads types from a YAML file, and returns them as a vector in an output port.
This is a templated behavior to load any type from a YAML file, as long as a YAML conversion function has been defined for the type (see yaml_parsing_tools.hpp). The YAML file can contain one or multiple instances of the type. In any case, an std::vector<T> will be returned, even if the file contains a single element.
In case of multiple messages, the YAML file is expected to be formatted as a multi-document YAML, e.g. for a type with 'x' and 'y' fields, this YAML contents would return an std::vector with two elements:
x: 0.1
Definition at line 66 of file load_from_yaml.hpp.
Public Constructors
LoadMultipleFromYaml()
|
Declaration at line 72 of file load_from_yaml.hpp, definition at line 254 of file load_from_yaml_impl.hpp.
Public Member Functions
metadata()
|
Definition at line 321 of file load_from_yaml_impl.hpp.
metadata()
|
Definition at line 355 of file load_from_yaml_impl.hpp.
metadata()
|
Definition at line 391 of file load_from_yaml_impl.hpp.
metadata()
|
Definition at line 427 of file load_from_yaml_impl.hpp.
metadata()
|
Definition at line 462 of file load_from_yaml_impl.hpp.
providedPorts()
|
Definition at line 305 of file load_from_yaml_impl.hpp.
providedPorts()
|
Definition at line 339 of file load_from_yaml_impl.hpp.
providedPorts()
|
Definition at line 373 of file load_from_yaml_impl.hpp.
providedPorts()
|
Definition at line 409 of file load_from_yaml_impl.hpp.
providedPorts()
|
Definition at line 445 of file load_from_yaml_impl.hpp.
tick()
|
Declaration at line 79 of file load_from_yaml.hpp, definition at line 616 of file load_from_yaml_impl.hpp.
Public Static Functions
metadata()
| static |
Declaration at line 77 of file load_from_yaml.hpp, definition at line 288 of file load_from_yaml_impl.hpp.
providedPorts()
| static |
Declaration at line 75 of file load_from_yaml.hpp, definition at line 271 of file load_from_yaml_impl.hpp.
Public Static Attributes
kPortIDInput
| static |
Definition at line 69 of file load_from_yaml.hpp.
kPortIDOutput
| static |
Definition at line 70 of file load_from_yaml.hpp.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.