DummyTextToSpeech.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package RobotAPI::ArmarXObjects::DummyTextToSpeech
17  * @author Simon Ottenhaus ( simon dot ottenhaus at kit dot edu )
18  * @date 2018
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 
27 
28 #include <RobotAPI/interface/speech/SpeechInterface.h>
29 
30 namespace armarx
31 {
32  /**
33  * @class DummyTextToSpeechPropertyDefinitions
34  * @brief
35  */
38  {
39  public:
42  {
43  //defineRequiredProperty<std::string>("PropertyName", "Description");
44  defineOptionalProperty<std::string>("TextToSpeechTopicName", "TextToSpeech", "Name of the TextToSpeechTopic");
45  defineOptionalProperty<std::string>("TextToSpeechStateTopicName", "TextToSpeechState", "Name of the TextToSpeechStateTopic");
46  }
47  };
48 
49  /**
50  * @defgroup Component-DummyTextToSpeech DummyTextToSpeech
51  * @ingroup RobotAPI-Components
52  * A description of the component DummyTextToSpeech.
53  *
54  * @class DummyTextToSpeech
55  * @ingroup Component-DummyTextToSpeech
56  * @brief Brief description of class DummyTextToSpeech.
57  *
58  * Detailed description of class DummyTextToSpeech.
59  */
61  virtual public armarx::Component,
62  virtual public TextListenerInterface
63  {
64  public:
65  /**
66  * @see armarx::ManagedIceObject::getDefaultName()
67  */
68  std::string getDefaultName() const override
69  {
70  return "DummyTextToSpeech";
71  }
72 
73  protected:
74  /**
75  * @see armarx::ManagedIceObject::onInitComponent()
76  */
77  void onInitComponent() override;
78 
79  /**
80  * @see armarx::ManagedIceObject::onConnectComponent()
81  */
82  void onConnectComponent() override;
83 
84  /**
85  * @see armarx::ManagedIceObject::onDisconnectComponent()
86  */
87  void onDisconnectComponent() override;
88 
89  /**
90  * @see armarx::ManagedIceObject::onExitComponent()
91  */
92  void onExitComponent() override;
93 
94  /**
95  * @see PropertyUser::createPropertyDefinitions()
96  */
98 
99  // TextListenerInterface interface
100  public:
101  void reportText(const std::string& text, const Ice::Current&) override;
102  void reportTextWithParams(const std::string& text, const Ice::StringSeq& params, const Ice::Current&) override;
103 
104  private:
105  TextToSpeechStateInterfacePrx textToSpeechStateTopicPrx;
106  };
107 }
armarx::DummyTextToSpeech::onDisconnectComponent
void onDisconnectComponent() override
Definition: DummyTextToSpeech.cpp:43
armarx::DummyTextToSpeech::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: DummyTextToSpeech.cpp:54
armarx::DummyTextToSpeech::getDefaultName
std::string getDefaultName() const override
Definition: DummyTextToSpeech.h:68
armarx::DummyTextToSpeech::onConnectComponent
void onConnectComponent() override
Definition: DummyTextToSpeech.cpp:36
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
armarx::DummyTextToSpeech::reportText
void reportText(const std::string &text, const Ice::Current &) override
Definition: DummyTextToSpeech.cpp:62
armarx::DummyTextToSpeech::onExitComponent
void onExitComponent() override
Definition: DummyTextToSpeech.cpp:49
armarx::DummyTextToSpeech
Brief description of class DummyTextToSpeech.
Definition: DummyTextToSpeech.h:60
armarx::DummyTextToSpeech::onInitComponent
void onInitComponent() override
Definition: DummyTextToSpeech.cpp:29
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
armarx::DummyTextToSpeechPropertyDefinitions::DummyTextToSpeechPropertyDefinitions
DummyTextToSpeechPropertyDefinitions(std::string prefix)
Definition: DummyTextToSpeech.h:40
armarx::ComponentPropertyDefinitions
Default component property definition container.
Definition: Component.h:70
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::DummyTextToSpeech::reportTextWithParams
void reportTextWithParams(const std::string &text, const Ice::StringSeq &params, const Ice::Current &) override
Definition: DummyTextToSpeech.cpp:77
armarx::DummyTextToSpeechPropertyDefinitions
Definition: DummyTextToSpeech.h:36
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28