StatechartListenerSegment.h
Go to the documentation of this file.
1
#pragma once
2
3
// Base Class
4
#include <
RobotAPI/libraries/armem/server/segment/SpecializedSegment.h
>
5
6
// ArmarX
7
#include <ArmarXCore/interface/core/Profiler.h>
8
#include <
ArmarXCore/observers/ObserverObjectFactories.h
>
9
#include <
ArmarXCore/core/application/properties/PropertyDefinitionContainer.h
>
10
11
12
namespace
armarx::skills::segment
13
{
14
class
StatechartListenerProviderSegment
:
15
public
armem::server::segment::SpecializedProviderSegment
16
{
17
using
Base
=
armem::server::segment::SpecializedProviderSegment
;
18
19
public
:
20
StatechartListenerProviderSegment
(
armem::server::MemoryToIceAdapter
&
iceMemory
);
21
22
void
defineProperties
(
PropertyDefinitionsPtr
defs,
const
std::string &prefix);
23
void
init
();
24
25
void
reportStatechartTransitionWithParameters
(
const
ProfilerStatechartTransitionWithParameters&);
26
void
reportStatechartTransitionWithParametersList
(
const
ProfilerStatechartTransitionWithParametersList&);
27
28
private
:
29
std::string getStatechartName(std::string stateName);
30
31
private
:
32
struct
Properties
33
{
34
// Statechart transition logging
35
std::string statechartCoreSegmentName =
"Statechart"
;
36
std::string statechartTransitionsProviderSegmentName =
"Transitions"
;
37
std::string statechartTransitionsTopicName =
"StateReportingTopic"
;
38
};
39
Properties p;
40
};
41
}
armarx::skills::segment::StatechartListenerProviderSegment::defineProperties
void defineProperties(PropertyDefinitionsPtr defs, const std::string &prefix)
Definition:
StatechartListenerSegment.cpp:13
armarx::skills::segment::StatechartListenerProviderSegment
Definition:
StatechartListenerSegment.h:14
SpecializedSegment.h
armarx::armem::server::MemoryToIceAdapter
Helps connecting a Memory server to the Ice interface.
Definition:
MemoryToIceAdapter.h:19
armarx::skills::segment::StatechartListenerProviderSegment::init
void init()
Definition:
StatechartListenerSegment.cpp:25
armarx::armem::server::segment::SpecializedProviderSegment
A base class for provider segments.
Definition:
SpecializedProviderSegment.h:20
armarx::skills::segment::StatechartListenerProviderSegment::reportStatechartTransitionWithParametersList
void reportStatechartTransitionWithParametersList(const ProfilerStatechartTransitionWithParametersList &)
Definition:
StatechartListenerSegment.cpp:53
ObserverObjectFactories.h
armarx::skills::segment
Definition:
ExecutableSkillLibrarySegment.cpp:13
armarx::armem::server::segment::detail::SegmentBase< server::wm::ProviderSegment >
armarx::skills::segment::StatechartListenerProviderSegment::reportStatechartTransitionWithParameters
void reportStatechartTransitionWithParameters(const ProfilerStatechartTransitionWithParameters &)
Definition:
StatechartListenerSegment.cpp:30
armarx::armem::server::segment::detail::SegmentBase< server::wm::ProviderSegment >::iceMemory
MemoryToIceAdapter & iceMemory
Definition:
SpecializedSegment.h:60
PropertyDefinitionContainer.h
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::skills::segment::StatechartListenerProviderSegment::StatechartListenerProviderSegment
StatechartListenerProviderSegment(armem::server::MemoryToIceAdapter &iceMemory)
Definition:
StatechartListenerSegment.cpp:8
RobotAPI
libraries
armem_skills
server
segment
StatechartListenerSegment.h
Generated on Sat Oct 12 2024 09:14:09 for armarx_documentation by
1.8.17