FrequencyFilter.h
Go to the documentation of this file.
1
#pragma once
2
3
// Base Class
4
#include "../Filter.h"
5
6
namespace
armarx::armem::server::ltm::processor::filter
7
{
8
9
class
SnapshotFrequencyFilter
:
public
SnapshotFilter
10
{
11
public
:
12
static
const
constexpr
char
*
NAME
=
"SnapshotFrequencyFilter"
;
13
static
const
constexpr
char
*
PARAM_WAITING_TIME
=
"WaitingTimeInMsForFilter"
;
14
15
SnapshotFrequencyFilter
() =
default
;
16
17
virtual
bool
accept
(
const
armem::wm::EntitySnapshot
&e)
override
;
18
void
configure
(
const
nlohmann::json& json)
override
;
19
20
FilterStatistics
getFilterStatistics
()
override
;
21
std::string
getName
()
override
;
22
23
private
:
24
std::map<MemoryID, std::int64_t> lastTimesPerEntity;
25
int
maxDifference = 0;
26
};
27
}
// namespace armarx::armem::server::ltm::processor::filter
armarx::armem::server::ltm::processor::filter::SnapshotFrequencyFilter::configure
void configure(const nlohmann::json &json) override
Definition:
FrequencyFilter.cpp:70
armarx::armem::server::ltm::processor::filter::SnapshotFrequencyFilter::accept
virtual bool accept(const armem::wm::EntitySnapshot &e) override
Definition:
FrequencyFilter.cpp:9
armarx::armem::server::ltm::processor::filter::SnapshotFrequencyFilter::getName
std::string getName() override
Definition:
FrequencyFilter.cpp:89
armarx::armem::server::ltm::processor::filter::SnapshotFrequencyFilter::SnapshotFrequencyFilter
SnapshotFrequencyFilter()=default
armarx::armem::server::ltm::processor::filter::SnapshotFrequencyFilter::NAME
static const constexpr char * NAME
Definition:
FrequencyFilter.h:12
armarx::armem::server::ltm::processor::filter::SnapshotFrequencyFilter::PARAM_WAITING_TIME
static const constexpr char * PARAM_WAITING_TIME
Definition:
FrequencyFilter.h:13
armarx::armem::wm::EntitySnapshot
Client-side working memory entity snapshot.
Definition:
memory_definitions.h:80
armarx::armem::server::ltm::processor::filter::SnapshotFrequencyFilter::getFilterStatistics
FilterStatistics getFilterStatistics() override
Definition:
FrequencyFilter.cpp:83
armarx::armem::server::ltm::processor::filter
Definition:
EqualityFilter.cpp:9
armarx::armem::server::ltm::processor::filter::SnapshotFrequencyFilter
Definition:
FrequencyFilter.h:9
armarx::armem::server::ltm::processor::SnapshotFilter::FilterStatistics
Definition:
Filter.h:35
armarx::armem::server::ltm::processor::SnapshotFilter
Definition:
Filter.h:26
RobotAPI
libraries
armem
server
ltm
processors
filter
frequencyFilter
FrequencyFilter.h
Generated on Sat Oct 12 2024 09:14:08 for armarx_documentation by
1.8.17