ComposedSkillLibrarySegment.h
Go to the documentation of this file.
1
#pragma once
2
3
// Base Class
4
#include <vector>
5
#include <
RobotAPI/libraries/armem/server/segment/SpecializedSegment.h
>
6
7
// ArmarX
8
#include <
ArmarXCore/core/application/properties/PropertyDefinitionContainer.h
>
9
#include <ArmarXCore/interface/core/Profiler.h>
10
#include <
ArmarXCore/observers/ObserverObjectFactories.h
>
11
12
#include <RobotAPI/interface/skills/SkillManagerInterface.h>
13
#include <RobotAPI/interface/skills/SkillProviderInterface.h>
14
#include <RobotAPI/libraries/armem_skills/aron/Skill.aron.generated.h>
15
#include <
RobotAPI/libraries/skills/core/ProviderInfo.h
>
16
#include <RobotAPI/libraries/skills/core/aron/FluxioSkill.aron.generated.h>
17
18
namespace
armarx::skills::segment
19
{
20
class
ComposedSkillLibraryCoreSegment
:
public
armem::server::segment::SpecializedCoreSegment
21
{
22
using
Base
=
armem::server::segment::SpecializedCoreSegment
;
23
24
public
:
25
static
constexpr
const
char
*
CoreSegmentName
=
"ComposedSkill"
;
26
27
ComposedSkillLibraryCoreSegment
(
armem::server::MemoryToIceAdapter
&
iceMemory
);
28
29
void
defineProperties
(
PropertyDefinitionsPtr
defs,
const
std::string& prefix);
30
void
init
();
31
32
void
addSkill
(
const
skills::manager::arondto::FluxioSkill& skill);
33
34
std::optional<std::vector<skills::manager::arondto::FluxioSkill>>
getSkills
()
const
;
35
std::optional<std::vector<skills::manager::arondto::FluxioSkill>>
getSkillsOfProvider
(
const
std::string& providerId)
const
;
36
37
private
:
38
static
const
int
maxHistorySize = 7;
39
};
40
}
// namespace armarx::skills::segment
SpecializedSegment.h
armarx::skills::segment::ComposedSkillLibraryCoreSegment::addSkill
void addSkill(const skills::manager::arondto::FluxioSkill &skill)
Definition:
ComposedSkillLibrarySegment.cpp:43
armarx::armem::server::segment::SpecializedCoreSegment
A base class for core segments.
Definition:
SpecializedCoreSegment.h:19
armarx::skills::segment::ComposedSkillLibraryCoreSegment::CoreSegmentName
static constexpr const char * CoreSegmentName
Definition:
ComposedSkillLibrarySegment.h:25
armarx::skills::segment::ComposedSkillLibraryCoreSegment::getSkills
std::optional< std::vector< skills::manager::arondto::FluxioSkill > > getSkills() const
Definition:
ComposedSkillLibrarySegment.cpp:62
armarx::skills::segment::ComposedSkillLibraryCoreSegment::init
void init()
Definition:
ComposedSkillLibrarySegment.cpp:37
armarx::armem::server::MemoryToIceAdapter
Helps connecting a Memory server to the Ice interface.
Definition:
MemoryToIceAdapter.h:19
armarx::skills::segment::ComposedSkillLibraryCoreSegment::ComposedSkillLibraryCoreSegment
ComposedSkillLibraryCoreSegment(armem::server::MemoryToIceAdapter &iceMemory)
Definition:
ComposedSkillLibrarySegment.cpp:22
armarx::skills::segment::ComposedSkillLibraryCoreSegment::getSkillsOfProvider
std::optional< std::vector< skills::manager::arondto::FluxioSkill > > getSkillsOfProvider(const std::string &providerId) const
Definition:
ComposedSkillLibrarySegment.cpp:91
ObserverObjectFactories.h
armarx::skills::segment
Definition:
ComposedSkillLibrarySegment.cpp:20
armarx::armem::server::segment::detail::SegmentBase< server::wm::CoreSegment >
armarx::armem::server::segment::detail::SegmentBase< server::wm::CoreSegment >::iceMemory
MemoryToIceAdapter & iceMemory
Definition:
SpecializedSegment.h:58
PropertyDefinitionContainer.h
ProviderInfo.h
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::skills::segment::ComposedSkillLibraryCoreSegment
Definition:
ComposedSkillLibrarySegment.h:20
armarx::skills::segment::ComposedSkillLibraryCoreSegment::defineProperties
void defineProperties(PropertyDefinitionsPtr defs, const std::string &prefix)
Definition:
ComposedSkillLibrarySegment.cpp:29
RobotAPI
libraries
armem_skills
server
segment
ComposedSkillLibrarySegment.h
Generated on Sat Mar 29 2025 09:17:29 for armarx_documentation by
1.8.17