AffordanceLoader.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <fstream>
4
#include <string>
5
#include <vector>
6
7
#include <SimoxUtility/json.h>
8
9
#include "
datatypes/Affordance.h
"
10
11
namespace
armarx::priorknowledge::util
12
{
13
class
AffordanceLoader
14
{
15
public
:
16
static
const
constexpr
auto
DEFAULT_FILE_NAME
=
"affordances.json"
;
17
static
const
constexpr
auto
DEFAULT_LOCATION_FILE_NAME
=
"location_affordances.json"
;
18
19
AffordanceLoader
() =
delete
;
20
21
static
std::vector<StaticAffordance>
LoadAffordances
(
const
std::string& sourceId,
22
const
nlohmann::json&);
23
24
static
std::vector<LocationAffordance>
LoadLocationAffordances
(
const
std::string& sourceId,
25
const
nlohmann::json&);
26
};
27
}
// namespace armarx::priorknowledge::util
Affordance.h
armarx::priorknowledge::util::AffordanceLoader::LoadLocationAffordances
static std::vector< LocationAffordance > LoadLocationAffordances(const std::string &sourceId, const nlohmann::json &)
Definition:
AffordanceLoader.cpp:28
armarx::priorknowledge::util::AffordanceLoader
Definition:
AffordanceLoader.h:13
armarx::priorknowledge::util::AffordanceLoader::DEFAULT_FILE_NAME
static const constexpr auto DEFAULT_FILE_NAME
Definition:
AffordanceLoader.h:16
armarx::priorknowledge::util::AffordanceLoader::AffordanceLoader
AffordanceLoader()=delete
armarx::priorknowledge::util::AffordanceLoader::DEFAULT_LOCATION_FILE_NAME
static const constexpr auto DEFAULT_LOCATION_FILE_NAME
Definition:
AffordanceLoader.h:17
armarx::priorknowledge::util::AffordanceLoader::LoadAffordances
static std::vector< StaticAffordance > LoadAffordances(const std::string &sourceId, const nlohmann::json &)
Definition:
AffordanceLoader.cpp:9
armarx::priorknowledge::util
Definition:
AffordanceLoader.cpp:6
RobotAPI
libraries
PriorKnowledge
util
AffordanceLoader
AffordanceLoader.h
Generated on Sat Oct 12 2024 09:14:11 for armarx_documentation by
1.8.17