Skip to content

Commit

Permalink
Rename IDL libraries (drop suffix)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Aug 31, 2023
1 parent 02db59a commit cab532b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace yarp roboticslab

service SelfPresentationCommandsIDL
service SelfPresentationCommands
{
oneway void doGreet();
oneway void doHoming();
Expand Down
4 changes: 2 additions & 2 deletions programs/BodyExecution/BodyExecution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <yarp/dev/IPositionControl.h>
#include <yarp/dev/PolyDriver.h>

#include "SelfPresentationCommandsIDL.h"
#include "SelfPresentationCommands.h"

namespace roboticslab
{
Expand All @@ -26,7 +26,7 @@ namespace roboticslab
* @brief Body Execution core.
*/
class BodyExecution : public yarp::os::RFModule,
public SelfPresentationCommandsIDL
public SelfPresentationCommands
{
public:
using setpoints_head_t = std::array<double, 2>;
Expand Down
10 changes: 5 additions & 5 deletions programs/DialogueManager/DialogueManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ bool DialogueManager::configure(yarp::os::ResourceFinder & rf)
return false;
}

speech.yarp().attachAsClient(speechPort);
tts.yarp().attachAsClient(speechPort);
motion.yarp().attachAsClient(motionPort);

if (language == "english")
Expand Down Expand Up @@ -165,7 +165,7 @@ bool DialogueManager::close()

bool DialogueManager::threadInit()
{
if (!speech.setLanguage(voice))
if (!tts.setLanguage(voice))
{
yError() << "Unable to set voice to" << voice;
return false;
Expand All @@ -176,7 +176,7 @@ bool DialogueManager::threadInit()

void DialogueManager::threadRelease()
{
if (!speech.stop())
if (!tts.stop())
{
yWarning() << "Unable to stop speech";
}
Expand Down Expand Up @@ -279,7 +279,7 @@ void DialogueManager::speak(const std::string & sentenceId)
{
yInfo() << sentenceId << "->" << sentences[sentenceId];

if (!speech.say(sentences[sentenceId]))
if (!tts.say(sentences[sentenceId]))
{
yWarning() << "Unable to say" << sentenceId;
}
Expand All @@ -296,7 +296,7 @@ void DialogueManager::awaitSpeechCompletion()

yarp::os::SystemClock::delaySystem(0.1);
}
while (speechPort.getOutputCount() > 0 && !speech.checkSayDone());
while (speechPort.getOutputCount() > 0 && !tts.checkSayDone());
}

void DialogueManager::awaitMotionCompletion()
Expand Down
8 changes: 4 additions & 4 deletions programs/DialogueManager/DialogueManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <yarp/os/RpcClient.h>
#include <yarp/os/Thread.h>

#include <TextToSpeechIDL.h>
#include <SpeechSynthesis.h>

#include "SelfPresentationCommandsIDL.h"
#include "SelfPresentationCommands.h"

namespace roboticslab
{
Expand Down Expand Up @@ -45,8 +45,8 @@ class DialogueManager : public yarp::os::RFModule,
void awaitMotionCompletion();
void awaitSpeechAndMotionCompletion();

TextToSpeechIDL speech;
SelfPresentationCommandsIDL motion;
SpeechSynthesis tts;
SelfPresentationCommands motion;

yarp::os::RpcClient speechPort;
yarp::os::RpcClient motionPort;
Expand Down

0 comments on commit cab532b

Please sign in to comment.