30#include <RobotAPI/interface/observers/SpeechObserverInterface.h>
40 "TextToSpeechTopicName",
"TextToSpeech",
"Name of the TextToSpeechTopic");
43 "Name of the TextToSpeechStateTopic");
58 void reportText(
const std::string&,
const Ice::Current&)
override;
60 const Ice::StringSeq&,
61 const Ice::Current&)
override;
74 return "SpeechObserver";
86 virtual void reportState(armarx::TextToSpeechStateType state,
87 const Ice::Current& = Ice::emptyCurrent)
override;
88 virtual void reportText(
const std::string& text,
89 const Ice::Current& = Ice::emptyCurrent)
override;
91 const Ice::StringSeq& params,
92 const Ice::Current& = Ice::emptyCurrent)
override;
98 int reportTextCounter = 0;
99 int reportStateCounter = 0;
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
ObserverPropertyDefinitions(std::string prefix)
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
void reportText(const std::string &, const Ice::Current &) override
SpeechListenerImpl(SpeechObserver *obs)
void reportTextWithParams(const std::string &, const Ice::StringSeq &, const Ice::Current &) override
SpeechObserverPropertyDefinitions(std::string prefix)
void onConnectObserver() override
Framework hook.
virtual void reportTextWithParams(const std::string &text, const Ice::StringSeq ¶ms, const Ice::Current &=Ice::emptyCurrent) override
virtual void reportText(const std::string &text, const Ice::Current &=Ice::emptyCurrent) override
friend class SpeechListenerImpl
PropertyDefinitionsPtr createPropertyDefinitions() override
static std::string SpeechStateToString(TextToSpeechStateType state)
void onInitObserver() override
Framework hook.
virtual void reportState(armarx::TextToSpeechStateType state, const Ice::Current &=Ice::emptyCurrent) override
std::string getDefaultName() const override
Retrieve default name of component.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.