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:
55  struct Properties
56  {
57  bool loadDummyEntries = false;
58  };
59 
61  };
62 } // namespace armarx::armem::server::human::facerecog
63 
65 {
67 }
SpecializedSegment.h
armarx::armem::server::segment::SpecializedCoreSegment
A base class for core segments.
Definition: SpecializedCoreSegment.h:20
armarx::armem::server::MemoryToIceAdapter
Helps connecting a Memory server to the Ice interface.
Definition: MemoryToIceAdapter.h:19
armarx::armem::human::FaceRecognition
Definition: types.h:59
armarx::armem::server::human::facerecog::Segment::CORE_SEGMENT_NAME
static const std::string CORE_SEGMENT_NAME
Definition: Segment.h:38
armarx::armem::server::human::facerecog::Segment::init
void init() override
Definition: Segment.cpp:58
armarx::armem::server::human::facerecog::Segment::Properties
Definition: Segment.h:55
armarx::armem::server::human::facerecog
Definition: Segment.cpp:34
armarx::armem::server::human::facerecog::Segment::Properties::loadDummyEntries
bool loadDummyEntries
Definition: Segment.h:57
types.h
armarx::armem::MemoryID
A memory ID.
Definition: MemoryID.h:47
armarx::armem::server::segment::detail::SegmentBase< server::wm::CoreSegment >
armarx::armem::server::human::facerecog::Segment::properties
Properties properties
Definition: Segment.h:60
armarx::armem::server::human::facerecog::Segment::getFaceRecognitionEntities
std::map< std::string, std::vector< armarx::armem::human::FaceRecognition > > getFaceRecognitionEntities(const Duration &maxAge) const
Definition: Segment.cpp:102
armarx::armem::server::human::facerecog::Segment
Definition: Segment.h:34
armarx::armem::server::human::facerecog::Segment::defineProperties
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
Definition: Segment.cpp:49
armarx::armem::server::segment::detail::SegmentBase< server::wm::CoreSegment >::iceMemory
MemoryToIceAdapter & iceMemory
Definition: SpecializedSegment.h:60
armarx::armem::server::human
Definition: aron_conversions.cpp:11
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::armem::index::memoryID
const MemoryID memoryID
Definition: memory_ids.cpp:29
armarx::core::time::Duration
Represents a duration.
Definition: Duration.h:17
armarx::armem::server::human::facerecog::Segment::getFaceRecognition
armarx::armem::human::FaceRecognition getFaceRecognition(armarx::armem::MemoryID memoryID) const
Definition: Segment.cpp:147
armarx::armem::server::human::facerecog::Segment::Segment
Segment(armem::server::MemoryToIceAdapter &iceMemory)
Definition: Segment.cpp:40