ObjectFinder.h
Go to the documentation of this file.
1 #pragma once
2 
4 
6 {
7  /**
8  * @brief The ObjectFinder class
9  * TODO (fabian.peller): Merge with ArmarXObjects object finder!
10  */
12  {
13  public:
15  static const constexpr auto DEFAULT_DIR_TO_DATASETS = "objects";
16 
17  ObjectFinder(const std::filesystem::path& relDir = DEFAULT_DIR_TO_DATASETS) :
18  core::PKDatasetFinder(relDir)
19  {
20  }
21 
22  bool
23  accept(const std::filesystem::path& idPath) const final
24  {
25  return std::filesystem::is_directory(idPath);
26  }
27 
28  void
30  const std::string& prefix = "pk.finder.objects.") final
31  {
33  }
34  };
35 
36 } // namespace armarx::priorknowledge::objects
armarx::priorknowledge::objects::ObjectFinder
The ObjectFinder class TODO (fabian.peller): Merge with ArmarXObjects object finder!
Definition: ObjectFinder.h:11
armarx::priorknowledge::core::PKDatasetFinder::registerPropertyDefinitions
virtual void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &defs, const std::string &prefix)
Definition: PKDatasetFinder.cpp:11
PKDatasetFinder.h
armarx::priorknowledge::objects::ObjectFinder::registerPropertyDefinitions
void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &defs, const std::string &prefix="pk.finder.objects.") final
Definition: ObjectFinder.h:29
armarx::priorknowledge::objects::ObjectFinder::ObjectFinder
ObjectFinder(const std::filesystem::path &relDir=DEFAULT_DIR_TO_DATASETS)
Definition: ObjectFinder.h:17
armarx::priorknowledge::objects::ObjectFinder::accept
bool accept(const std::filesystem::path &idPath) const final
Definition: ObjectFinder.h:23
armarx::priorknowledge::objects
Definition: ObjectFinder.cpp:9
armarx::priorknowledge::core::PKDatasetFinder::PKDatasetFinder
PKDatasetFinder(const std::filesystem::path &relDir)
Definition: PKDatasetFinder.h:35
armarx::priorknowledge::objects::ObjectFinder::DEFAULT_DIR_TO_DATASETS
static const constexpr auto DEFAULT_DIR_TO_DATASETS
Definition: ObjectFinder.h:15
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::priorknowledge::core::PKDatasetFinder
The PKDatasetFinder class.
Definition: PKDatasetFinder.h:25