ExecutableSkillLibrarySegment.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Base Class
5 
6 // ArmarX
8 #include <ArmarXCore/interface/core/Profiler.h>
10 
11 #include <RobotAPI/interface/skills/SkillManagerInterface.h>
12 #include <RobotAPI/interface/skills/SkillProviderInterface.h>
13 #include <RobotAPI/libraries/armem_skills/aron/Skill.aron.generated.h>
15 
17 {
19  {
21 
22  public:
23  static constexpr const char* CoreSegmentName = "ExecutableSkill";
24 
26 
27  void defineProperties(PropertyDefinitionsPtr defs, const std::string& prefix);
28  void init();
29 
30  void addSkillProvider(const skills::ProviderInfo& info);
31  void removeSkillProvider(const std::string& providerName);
32 
33  size_t size() const;
34 
35  private:
36  std::map<std::string, std::map<std::string, skills::manager::dto::ProviderInfo>> skills;
37  };
38 } // namespace armarx::skills::segment
SpecializedSegment.h
skills
This file is part of ArmarX.
armarx::armem::server::segment::SpecializedCoreSegment
A base class for core segments.
Definition: SpecializedCoreSegment.h:20
armarx::skills::segment::ExecutableSkillLibraryCoreSegment::init
void init()
Definition: ExecutableSkillLibrarySegment.cpp:30
armarx::armem::server::MemoryToIceAdapter
Helps connecting a Memory server to the Ice interface.
Definition: MemoryToIceAdapter.h:19
armarx::skills::segment::ExecutableSkillLibraryCoreSegment::removeSkillProvider
void removeSkillProvider(const std::string &providerName)
Definition: ExecutableSkillLibrarySegment.cpp:62
armarx::skills::segment::ExecutableSkillLibraryCoreSegment
Definition: ExecutableSkillLibrarySegment.h:18
ObserverObjectFactories.h
armarx::skills::segment
Definition: ExecutableSkillLibrarySegment.cpp:13
armarx::armem::server::segment::detail::SegmentBase< server::wm::CoreSegment >
armarx::skills::segment::ExecutableSkillLibraryCoreSegment::size
size_t size() const
armarx::skills::segment::ExecutableSkillLibraryCoreSegment::CoreSegmentName
static constexpr const char * CoreSegmentName
Definition: ExecutableSkillLibrarySegment.h:23
armarx::armem::server::segment::detail::SegmentBase< server::wm::CoreSegment >::iceMemory
MemoryToIceAdapter & iceMemory
Definition: SpecializedSegment.h:60
PropertyDefinitionContainer.h
ProviderInfo.h
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::skills::ProviderInfo
Definition: ProviderInfo.h:19
armarx::skills::segment::ExecutableSkillLibraryCoreSegment::defineProperties
void defineProperties(PropertyDefinitionsPtr defs, const std::string &prefix)
Definition: ExecutableSkillLibrarySegment.cpp:22
armarx::skills::segment::ExecutableSkillLibraryCoreSegment::ExecutableSkillLibraryCoreSegment
ExecutableSkillLibraryCoreSegment(armem::server::MemoryToIceAdapter &iceMemory)
Definition: ExecutableSkillLibrarySegment.cpp:15
armarx::skills::segment::ExecutableSkillLibraryCoreSegment::addSkillProvider
void addSkillProvider(const skills::ProviderInfo &info)
Definition: ExecutableSkillLibrarySegment.cpp:36