PersonInstanceSegment.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
27
#include <
RobotAPI/libraries/armem/server/segment/SpecializedSegment.h
>
28
29
#include <
VisionX/libraries/armem_human/types.h
>
30
31
namespace
armarx::armem::server::human
32
{
33
class
PersonInstanceSegment
:
public
armem::server::segment::SpecializedCoreSegment
34
{
35
public
:
36
using
Base
=
armem::server::segment::SpecializedCoreSegment
;
37
38
PersonInstanceSegment
(
armem::server::MemoryToIceAdapter
&
iceMemory
);
39
40
virtual
void
defineProperties
(
armarx::PropertyDefinitionsPtr
defs,
41
const
std::string& prefix =
""
)
override
;
42
43
std::map<std::string, std::vector<armarx::armem::human::PersonInstance>>
44
getPersonInstanceEntities
(
const
Duration
& maxAge)
const
;
45
46
public
:
47
static
const
std::string
CORE_SEGMENT_NAME
;
48
};
49
}
// namespace armarx::armem::server::human
SpecializedSegment.h
armarx::armem::server::human::PersonInstanceSegment::defineProperties
virtual void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
Definition:
PersonInstanceSegment.cpp:45
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::server::human::PersonInstanceSegment::getPersonInstanceEntities
std::map< std::string, std::vector< armarx::armem::human::PersonInstance > > getPersonInstanceEntities(const Duration &maxAge) const
Definition:
PersonInstanceSegment.cpp:52
types.h
armarx::armem::server::segment::detail::SegmentBase< server::wm::CoreSegment >
armarx::armem::server::human::PersonInstanceSegment
Definition:
PersonInstanceSegment.h:33
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
armarx::armem::server::human::PersonInstanceSegment::PersonInstanceSegment
PersonInstanceSegment(armem::server::MemoryToIceAdapter &iceMemory)
Definition:
PersonInstanceSegment.cpp:39
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::core::time::Duration
Represents a duration.
Definition:
Duration.h:17
armarx::armem::server::human::PersonInstanceSegment::CORE_SEGMENT_NAME
static const std::string CORE_SEGMENT_NAME
Definition:
PersonInstanceSegment.h:47
VisionX
libraries
armem_human
server
PersonInstanceSegment.h
Generated on Sat Oct 12 2024 09:14:18 for armarx_documentation by
1.8.17