Processors.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <map>
4
#include <mutex>
5
#include <optional>
6
#include <string>
7
8
#include <
RobotAPI/libraries/armem/core/MemoryID.h
>
9
10
#include "
converter/data/Converter.h
"
11
#include "
converter/data/object/json/JsonConverter.h
"
12
#include "
converter/type/object/json/JsonConverter.h
"
13
#include "
extractor/Extractor.h
"
14
#include "
filter/Filter.h
"
15
16
namespace
armarx::armem::server::ltm
17
{
18
/// all necessary classes to filter and convert an entry of the ltm to some other format(s)
19
class
Processors
20
{
21
public
:
22
Processors
() =
default
;
23
24
void
configure
(
const
nlohmann::json& config);
25
26
std::map<std::string, processor::SnapshotFilter::FilterStatistics>
27
getSnapshotFilterStatistics
();
28
29
/**
30
* @brief resetFilterStatisticsForNewEpisode runs resetFilterStatisticsForNewEpisode on all
31
* snapshot filters
32
*/
33
void
resetFilterStatisticsForNewEpisode
();
34
35
public
:
36
// Unique Memory Filters
37
std::vector<std::unique_ptr<processor::MemoryFilter>>
memFilters
;
38
39
// Unique Snapshot filters
40
std::vector<std::unique_ptr<processor::SnapshotFilter>>
snapFilters
;
41
42
// Special Extractors
43
std::vector<std::unique_ptr<processor::Extractor>>
extractors
;
44
45
// Special Converters
46
std::vector<std::unique_ptr<processor::DataConverter>>
converters
;
47
48
// Default converters
49
processor::converter::data::object::JsonConverter
defaultObjectConverter
;
50
processor::converter::type::object::JsonConverter
defaultTypeConverter
;
51
};
52
}
// namespace armarx::armem::server::ltm
armarx::armem::server::ltm::processor::converter::data::object::JsonConverter
Definition:
JsonConverter.h:11
armarx::armem::server::ltm::Processors::resetFilterStatisticsForNewEpisode
void resetFilterStatisticsForNewEpisode()
resetFilterStatisticsForNewEpisode runs resetFilterStatisticsForNewEpisode on all snapshot filters
Definition:
Processors.cpp:86
Converter.h
MemoryID.h
armarx::armem::server::ltm::Processors::Processors
Processors()=default
JsonConverter.h
armarx::armem::server::ltm::Processors::snapFilters
std::vector< std::unique_ptr< processor::SnapshotFilter > > snapFilters
Definition:
Processors.h:40
Extractor.h
armarx::armem::server::ltm::processor::converter::type::object::JsonConverter
Definition:
JsonConverter.h:11
armarx::armem::server::ltm::Processors::memFilters
std::vector< std::unique_ptr< processor::MemoryFilter > > memFilters
Definition:
Processors.h:37
armarx::armem::server::ltm
Definition:
forward_declarations.h:20
armarx::armem::server::ltm::Processors::getSnapshotFilterStatistics
std::map< std::string, processor::SnapshotFilter::FilterStatistics > getSnapshotFilterStatistics()
Definition:
Processors.cpp:61
armarx::armem::server::ltm::Processors::extractors
std::vector< std::unique_ptr< processor::Extractor > > extractors
Definition:
Processors.h:43
JsonConverter.h
armarx::armem::server::ltm::Processors::defaultObjectConverter
processor::converter::data::object::JsonConverter defaultObjectConverter
Definition:
Processors.h:49
armarx::armem::server::ltm::Processors::configure
void configure(const nlohmann::json &config)
Definition:
Processors.cpp:17
armarx::armem::server::ltm::Processors
all necessary classes to filter and convert an entry of the ltm to some other format(s)
Definition:
Processors.h:19
armarx::armem::server::ltm::Processors::defaultTypeConverter
processor::converter::type::object::JsonConverter defaultTypeConverter
Definition:
Processors.h:50
armarx::armem::server::ltm::Processors::converters
std::vector< std::unique_ptr< processor::DataConverter > > converters
Definition:
Processors.h:46
Filter.h
RobotAPI
libraries
armem
server
ltm
processors
Processors.h
Generated on Sat Mar 29 2025 09:17:28 for armarx_documentation by
1.8.17