ObjectFinder.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
RobotAPI/libraries/PriorKnowledge/core/PKDatasetFinder.h
>
4
5
namespace
armarx::priorknowledge::objects
6
{
7
/**
8
* @brief The ObjectFinder class
9
* TODO (fabian.peller): Merge with ArmarXObjects object finder!
10
*/
11
class
ObjectFinder
:
public
core::PKDatasetFinder
12
{
13
public
:
14
using
core::PKDatasetFinder::PKDatasetFinder
;
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
29
registerPropertyDefinitions
(
armarx::PropertyDefinitionsPtr
& defs,
30
const
std::string& prefix =
"pk.finder.objects."
) final
31
{
32
core::PKDatasetFinder::registerPropertyDefinitions
(defs, prefix);
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
RobotAPI
libraries
PriorKnowledge
objects
ObjectFinder.h
Generated on Sat Oct 12 2024 09:14:07 for armarx_documentation by
1.8.17