Skip to main content

LoadFromYaml Class Template

Loads a type from a YAML file, and returns it in an output port. More...

Declaration

template <typename T>
class moveit_pro::behaviors::LoadFromYaml<T> { ... }

Included Headers

#include <load_from_yaml.hpp>

Base class

classSharedResourcesNode<BehaviorTreeNodeT>

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

Public Constructors Index

template <typename T>
LoadFromYaml (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)

Public Member Functions Index

template <typename T>
BT::NodeStatustick () override
template <typename T>
BT::PortsListprovidedPorts ()
template <typename T>
BT::KeyValueVectormetadata ()
template <typename T>
BT::PortsListprovidedPorts ()
template <typename T>
BT::KeyValueVectormetadata ()
template <typename T>
BT::PortsListprovidedPorts ()
template <typename T>
BT::KeyValueVectormetadata ()
template <typename T>
BT::PortsListprovidedPorts ()
template <typename T>
BT::KeyValueVectormetadata ()
template <typename T>
BT::PortsListprovidedPorts ()
template <typename T>
BT::KeyValueVectormetadata ()
template <typename T>
BT::PortsListprovidedPorts ()
template <typename T>
BT::KeyValueVectormetadata ()
template <typename T>
BT::PortsListprovidedPorts ()
template <typename T>
BT::KeyValueVectormetadata ()
template <typename T>
BT::PortsListprovidedPorts ()
template <typename T>
BT::KeyValueVectormetadata ()
template <typename T>
BT::PortsListprovidedPorts ()
template <typename T>
BT::KeyValueVectormetadata ()
template <typename T>
BT::PortsListprovidedPorts ()
template <typename T>
BT::KeyValueVectormetadata ()
template <typename T>
BT::PortsListprovidedPorts ()
template <typename T>
BT::KeyValueVectormetadata ()

Public Static Functions Index

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

Public Static Attributes Index

template <typename T>
static const charkPortIDInput[] = "file_path"
template <typename T>
static const charkPortIDOutput[] = "output"

Description

Loads a type from a YAML file, and returns it 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 must contain a single instance of the type. To load multiple instances as a vector, use LoadMultipleFromYaml above.

As an example, for a type with 'x' and 'y' fields, this YAML contents should be:

x: 0.1 y: 0.1

Template Parameters
T

Determines the type of object to load from the YAML file.

If the optional package_name port is set, the YAML file is resolved relative to that ROS package's share directory. When package_name is empty (the default), relative file paths fall back to the active config's objectives source directory.

Data Port NamePort TypeObject Type
file_pathinputstd::string
package_nameinputstd::string (optional, defaults to "")
outputoutputT

Definition at line 119 of file load_from_yaml.hpp.

Public Constructors

LoadFromYaml()

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

Declaration at line 125 of file load_from_yaml.hpp, definition at line 248 of file load_from_yaml_impl.hpp.

Public Member Functions

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< std_msgs::msg::Header >::metadata ()

Definition at line 316 of file load_from_yaml_impl.hpp.

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::Pose >::metadata ()

Definition at line 350 of file load_from_yaml_impl.hpp.

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::PoseStamped >::metadata ()

Definition at line 385 of file load_from_yaml_impl.hpp.

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::PointStamped >::metadata ()

Definition at line 421 of file load_from_yaml_impl.hpp.

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< moveit_studio_vision_msgs::msg::ObjectSubframe >::metadata ()

Definition at line 456 of file load_from_yaml_impl.hpp.

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< moveit_msgs::msg::RobotState >::metadata ()

Definition at line 481 of file load_from_yaml_impl.hpp.

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< trajectory_msgs::msg::JointTrajectory >::metadata ()

Definition at line 500 of file load_from_yaml_impl.hpp.

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::Quaternion >::metadata ()

Definition at line 519 of file load_from_yaml_impl.hpp.

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::Vector3 >::metadata ()

Definition at line 538 of file load_from_yaml_impl.hpp.

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::Transform >::metadata ()

Definition at line 556 of file load_from_yaml_impl.hpp.

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::TransformStamped >::metadata ()

Definition at line 575 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< std_msgs::msg::Header >::providedPorts ()

Definition at line 295 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::Pose >::providedPorts ()

Definition at line 329 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::PoseStamped >::providedPorts ()

Definition at line 363 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::PointStamped >::providedPorts ()

Definition at line 399 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< moveit_studio_vision_msgs::msg::ObjectSubframe >::providedPorts ()

Definition at line 435 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< moveit_msgs::msg::RobotState >::providedPorts ()

Definition at line 470 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< trajectory_msgs::msg::JointTrajectory >::providedPorts ()

Definition at line 489 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::Quaternion >::providedPorts ()

Definition at line 508 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::Vector3 >::providedPorts ()

Definition at line 527 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::Transform >::providedPorts ()

Definition at line 545 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< geometry_msgs::msg::TransformStamped >::providedPorts ()

Definition at line 564 of file load_from_yaml_impl.hpp.

tick()

template <typename T>
BT::NodeStatus moveit_pro::behaviors::LoadFromYaml< T >::tick ()

Declaration at line 132 of file load_from_yaml.hpp, definition at line 583 of file load_from_yaml_impl.hpp.

Public Static Functions

metadata()

template <typename T>
BT::KeyValueVector moveit_pro::behaviors::LoadFromYaml< T >::metadata ()
static

Declaration at line 130 of file load_from_yaml.hpp, definition at line 283 of file load_from_yaml_impl.hpp.

providedPorts()

template <typename T>
BT::PortsList moveit_pro::behaviors::LoadFromYaml< T >::providedPorts ()
static

Declaration at line 128 of file load_from_yaml.hpp, definition at line 262 of file load_from_yaml_impl.hpp.

Public Static Attributes

kPortIDInput

template <typename T>
const char moveit_pro::behaviors::LoadFromYaml< T >::kPortIDInput = "file_path"
static

Definition at line 122 of file load_from_yaml.hpp.

kPortIDOutput

template <typename T>
const char moveit_pro::behaviors::LoadFromYaml< T >::kPortIDOutput = "output"
static

Definition at line 123 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.