Segment.h
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @package VisionX::ArmarXObjects::armem_images_server
17 * @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
18 * @date 2021
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
25#include <string>
26
28
29#include <VisionX/libraries/armem_human/aron/FaceRecognition.aron.generated.h>
31
33{
35 {
36 public:
38 static const std::string CORE_SEGMENT_NAME;
39
40 public:
42
44 const std::string& prefix = "") override;
45 void init() override;
46 std::map<std::string, std::vector<armarx::armem::human::FaceRecognition>>
47 getFaceRecognitionEntities(const Duration& maxAge) const;
50
51 private:
52 void loadDummyEntries();
53
54 public:
56 {
57 bool loadDummyEntries = false;
58 };
59
61 };
62} // namespace armarx::armem::server::human::facerecog
63
65{
67}
Helps connecting a Memory server to the Ice interface.
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
Definition Segment.cpp:49
static const std::string CORE_SEGMENT_NAME
Definition Segment.h:38
Segment(armem::server::MemoryToIceAdapter &iceMemory)
Definition Segment.cpp:40
armem::server::segment::SpecializedCoreSegment Base
Definition Segment.h:37
armarx::armem::human::FaceRecognition getFaceRecognition(armarx::armem::MemoryID memoryID) const
Definition Segment.cpp:147
std::map< std::string, std::vector< armarx::armem::human::FaceRecognition > > getFaceRecognitionEntities(const Duration &maxAge) const
Definition Segment.cpp:102
facerecog::Segment FaceRecognitionSegment
Definition Segment.h:66
armarx::core::time::Duration Duration
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.