SkillEventSegment.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <thread>
4
5
// Base Class
6
#include <
RobotAPI/libraries/armem/server/segment/SpecializedSegment.h
>
7
8
// ArmarX
9
#include <RobotAPI/interface/skills/SkillManagerInterface.h>
10
#include <RobotAPI/interface/skills/SkillProviderInterface.h>
11
#include <RobotAPI/libraries/armem_skills/aron/Skill.aron.generated.h>
12
#include <
RobotAPI/libraries/skills/core/SkillStatusUpdate.h
>
13
14
namespace
armarx::skills::segment
15
{
16
class
SkillEventCoreSegment
:
public
armem::server::segment::SpecializedCoreSegment
17
{
18
using
Base
=
armem::server::segment::SpecializedCoreSegment
;
19
20
public
:
21
static
constexpr
const
char
*
CoreSegmentName
=
"SkillEvent"
;
22
23
SkillEventCoreSegment
(
armem::server::MemoryToIceAdapter
&
iceMemory
);
24
25
void
defineProperties
(
PropertyDefinitionsPtr
defs,
const
std::string& prefix);
26
void
init
();
27
28
void
addSkillUpdateEvent
(
const
skills::SkillStatusUpdate
&
update
);
29
30
std::map<skills::SkillExecutionID, skills::SkillStatusUpdate>
getSkillStatusUpdates
();
31
32
std::optional<skills::SkillStatusUpdate>
33
getSkillStatusUpdate
(
const
skills::SkillExecutionID
&
id
);
34
35
private
:
36
};
37
}
// namespace armarx::skills::segment
SpecializedSegment.h
armarx::skills::SkillExecutionID
Definition:
SkillExecutionID.h:19
armarx::skills::segment::SkillEventCoreSegment
Definition:
SkillEventSegment.h:16
SkillStatusUpdate.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::skills::segment::SkillEventCoreSegment::CoreSegmentName
static constexpr const char * CoreSegmentName
Definition:
SkillEventSegment.h:21
armarx::skills::segment::SkillEventCoreSegment::init
void init()
Definition:
SkillEventSegment.cpp:28
armarx::skills::segment::SkillEventCoreSegment::SkillEventCoreSegment
SkillEventCoreSegment(armem::server::MemoryToIceAdapter &iceMemory)
Definition:
SkillEventSegment.cpp:13
armarx::skills::SkillStatusUpdate
Definition:
SkillStatusUpdate.h:139
armarx::skills::segment
Definition:
ExecutableSkillLibrarySegment.cpp:13
armarx::armem::server::segment::detail::SegmentBase< server::wm::CoreSegment >
armarx::armem::server::ltm::util::mongodb::detail::update
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
Definition:
mongodb.cpp:67
armarx::armem::server::segment::detail::SegmentBase< server::wm::CoreSegment >::iceMemory
MemoryToIceAdapter & iceMemory
Definition:
SpecializedSegment.h:60
armarx::skills::segment::SkillEventCoreSegment::getSkillStatusUpdates
std::map< skills::SkillExecutionID, skills::SkillStatusUpdate > getSkillStatusUpdates()
Definition:
SkillEventSegment.cpp:57
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::skills::segment::SkillEventCoreSegment::addSkillUpdateEvent
void addSkillUpdateEvent(const skills::SkillStatusUpdate &update)
Definition:
SkillEventSegment.cpp:34
armarx::skills::segment::SkillEventCoreSegment::defineProperties
void defineProperties(PropertyDefinitionsPtr defs, const std::string &prefix)
Definition:
SkillEventSegment.cpp:21
armarx::skills::segment::SkillEventCoreSegment::getSkillStatusUpdate
std::optional< skills::SkillStatusUpdate > getSkillStatusUpdate(const skills::SkillExecutionID &id)
Definition:
SkillEventSegment.cpp:90
RobotAPI
libraries
armem_skills
server
segment
SkillEventSegment.h
Generated on Sat Oct 12 2024 09:14:09 for armarx_documentation by
1.8.17