Go to the documentation of this file.
27 #include <RobotAPI/interface/observers/SpeechObserverInterface.h>
39 defineOptionalProperty<std::string>(
"TextToSpeechTopicName",
"TextToSpeech",
"Name of the TextToSpeechTopic");
40 defineOptionalProperty<std::string>(
"TextToSpeechStateTopicName",
"TextToSpeechState",
"Name of the TextToSpeechStateTopic");
53 void reportText(
const std::string&,
const Ice::Current&)
override;
54 void reportTextWithParams(
const std::string&,
const Ice::StringSeq&,
const Ice::Current&)
override;
59 virtual public SpeechObserverInterface
67 return "SpeechObserver";
77 virtual void reportState(armarx::TextToSpeechStateType state,
const Ice::Current& = Ice::emptyCurrent)
override;
78 virtual void reportText(
const std::string& text,
const Ice::Current& = Ice::emptyCurrent)
override;
79 virtual void reportTextWithParams(
const std::string& text,
const Ice::StringSeq& params,
const Ice::Current& = Ice::emptyCurrent)
override;
84 int reportTextCounter = 0;
85 int reportStateCounter = 0;
virtual void reportTextWithParams(const std::string &text, const Ice::StringSeq ¶ms, const Ice::Current &=Ice::emptyCurrent) override
void onConnectObserver() override
Framework hook.
void reportTextWithParams(const std::string &, const Ice::StringSeq &, const Ice::Current &) override
void reportText(const std::string &, const Ice::Current &) override
Baseclass for all ArmarX Observers.
SpeechListenerImpl(SpeechObserver *obs)
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
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.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
static std::string SpeechStateToString(TextToSpeechStateType state)
SpeechObserverPropertyDefinitions(std::string prefix)
PropertyDefinitionsPtr createPropertyDefinitions() override
virtual void reportText(const std::string &text, const Ice::Current &=Ice::emptyCurrent) override
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
This file offers overloads of toIce() and fromIce() functions for STL container types.