Skip to main content

GetFilePathsFromDirectory Class

Get all filenames in a given directory (optionally with a specific file extension). More...

Declaration

class moveit_pro::behaviors::GetFilePathsFromDirectory { ... }

Included Headers

#include <get_file_paths_from_directory.hpp>

Base class

classSharedResourcesNode<BehaviorTreeNodeT>

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

Public Constructors Index

GetFilePathsFromDirectory (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > &shared_resources)

Public Member Functions Index

BT::NodeStatustick () override

Public Static Functions Index

static BT::PortsListprovidedPorts ()
static BT::KeyValueVectormetadata ()

Description

Get all filenames in a given directory (optionally with a specific file extension).

The directory may be supplied as an absolute path, a path relative to the package named in package_name, or a path relative to the Objectives directory if no package is specified. Paths starting with ~ or $HOME are not supported: they would resolve inside the container, not on the host. Use an absolute path, a package_name, or a path relative to the Objectives directory instead.

Data Port NamePort TypeObject Type
package_nameinputstd::string
directory_pathinputstd::string
file_typeinputstd::string
resultoutputstd::vector<std::string>

Definition at line 30 of file get_file_paths_from_directory.hpp.

Public Constructors

GetFilePathsFromDirectory()

moveit_pro::behaviors::GetFilePathsFromDirectory::GetFilePathsFromDirectory (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > & shared_resources)

Declaration at line 33 of file get_file_paths_from_directory.hpp, definition at line 71 of file get_file_paths_from_directory.cpp.

Public Member Functions

tick()

BT::NodeStatus moveit_pro::behaviors::GetFilePathsFromDirectory::tick ()

Declaration at line 40 of file get_file_paths_from_directory.hpp, definition at line 100 of file get_file_paths_from_directory.cpp.

Public Static Functions

metadata()

BT::KeyValueVector moveit_pro::behaviors::GetFilePathsFromDirectory::metadata ()
static

Declaration at line 38 of file get_file_paths_from_directory.hpp, definition at line 93 of file get_file_paths_from_directory.cpp.

providedPorts()

BT::PortsList moveit_pro::behaviors::GetFilePathsFromDirectory::providedPorts ()
static

Declaration at line 36 of file get_file_paths_from_directory.hpp, definition at line 78 of file get_file_paths_from_directory.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.