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
27
#include <
RobotAPI/libraries/armem/server/segment/SpecializedSegment.h
>
28
29
30
namespace
armarx::armem::server::human::profile
31
{
32
class
Segment
:
public
armem::server::segment::SpecializedCoreSegment
33
{
34
public
:
35
36
using
Base
=
armem::server::segment::SpecializedCoreSegment
;
37
static
const
std::string
CORE_SEGMENT_NAME
;
38
39
public
:
40
41
Segment
(
armem::server::MemoryToIceAdapter
&
iceMemory
);
42
43
void
defineProperties
(
armarx::PropertyDefinitionsPtr
defs,
const
std::string& prefix =
""
)
override
;
44
void
init
()
override
;
45
46
47
void
loadPriorKnowledge
();
48
void
loadPriorKnowledge
(
const
std::string& dataPackageName);
49
50
public
:
51
52
struct
Properties
53
{
54
struct
PriorKnowledge
55
{
56
PriorKnowledge
();
57
58
bool
load
=
true
;
59
std::string
packageName
;
60
};
61
PriorKnowledge
priorKnowledge
;
62
};
63
Properties
properties
;
64
65
66
67
};
68
}
69
70
namespace
armarx::armem::server::human
71
{
72
using
ProfileSegment
=
profile::Segment
;
73
}
armarx::armem::server::human::profile::Segment::Segment
Segment(armem::server::MemoryToIceAdapter &iceMemory)
Definition:
Segment.cpp:46
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::server::human::profile::Segment
Definition:
Segment.h:32
armarx::armem::server::human::profile::Segment::Properties
Definition:
Segment.h:52
armarx::armem::server::human::profile::Segment::CORE_SEGMENT_NAME
static const std::string CORE_SEGMENT_NAME
Definition:
Segment.h:37
armarx::armem::server::human::profile::Segment::Properties::PriorKnowledge::PriorKnowledge
PriorKnowledge()
Definition:
Segment.cpp:51
armarx::armem::server::human::profile
Definition:
Finder.cpp:13
armarx::armem::server::human::profile::Segment::init
void init() override
Definition:
Segment.cpp:68
armarx::armem::server::human::profile::Segment::properties
Properties properties
Definition:
Segment.h:63
armarx::armem::server::human::profile::Segment::Properties::PriorKnowledge::packageName
std::string packageName
Definition:
Segment.h:59
armarx::armem::server::human::profile::Segment::Properties::PriorKnowledge
Definition:
Segment.h:54
armarx::armem::server::segment::detail::SegmentBase< server::wm::CoreSegment >
armarx::armem::server::human::profile::Segment::defineProperties
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="") override
Definition:
Segment.cpp:56
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::server::human::profile::Segment::loadPriorKnowledge
void loadPriorKnowledge()
Definition:
Segment.cpp:78
armarx::armem::server::human::profile::Segment::Properties::priorKnowledge
PriorKnowledge priorKnowledge
Definition:
Segment.h:61
armarx::armem::server::human::profile::Segment::Properties::PriorKnowledge::load
bool load
Definition:
Segment.h:58
VisionX
libraries
armem_human
server
profile
Segment.h
Generated on Sat Oct 12 2024 09:14:09 for armarx_documentation by
1.8.17