Skip to content
Snippets Groups Projects
Commit 167f7fe7 authored by Simon Ottenhaus's avatar Simon Ottenhaus
Browse files

speech debug output

parent a43a133f
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@ void RobotHealth::onConnectComponent()
emergencyStopTopicPrx = getTopic<EmergencyStopListenerPrx>(getProperty<std::string>("EmergencyStopTopicName").getValue());
//remoteGuiPrx = getProxy<RemoteGuiInterfacePrx>(getProperty<std::string>("RemoteGuiName").getValue());
aggregatedRobotHealthTopicPrx = getTopic<AggregatedRobotHealthInterfacePrx>(getProperty<std::string>("AggregatedRobotHealthTopicName").getValue());
textToSpeechTopic = getTopic<TextListenerInterfacePrx>(getProperty<std::string>("TextToSpeechTopicName").getValue());
/*if(robotUnitRequired)
{
......@@ -86,6 +87,7 @@ void RobotHealth::monitorHealthTaskClb()
if (e.isRunning)
{
ARMARX_ERROR << deactivateSpam(0.1, e.name) << "Component " << e.name << " has died.";
textToSpeechTopic->reportText("Oh no! Component " + e.name + " is no longer running.");
hasNewErr = true;
e.isRunning = false;
}
......
......@@ -30,6 +30,7 @@
#include <RobotAPI/interface/units/RobotUnit/RobotUnitInterface.h>
#include <atomic>
#include <ArmarXGui/interface/RemoteGuiInterface.h>
#include <RobotAPI/interface/speech/SpeechInterface.h>
namespace armarx
{
......@@ -46,6 +47,7 @@ namespace armarx
{
defineOptionalProperty<std::string>("EmergencyStopTopicName", "EmergencyStop", "The name of the topic over which changes of the emergencyStopState are sent.");
defineOptionalProperty<std::string>("RobotHealthTopicName", "RobotHealthTopic", "Name of the RobotHealth topic");
defineOptionalProperty<std::string>("TextToSpeechTopicName", "TextToSpeech", "Name of the TextToSpeech topic");
defineOptionalProperty<int>("MaximumCycleTimeWarnMS", 50, "Default value of the maximum cycle time for warnings");
defineOptionalProperty<int>("MaximumCycleTimeErrMS", 100, "Default value of the maximum cycle time for error");
defineOptionalProperty<std::string>("AggregatedRobotHealthTopicName", "AggregatedRobotHealthTopic", "Name of the AggregatedRobotHealthTopic");
......@@ -145,6 +147,7 @@ namespace armarx
//bool robotUnitRequired;
RemoteGuiInterfacePrx remoteGuiPrx;
AggregatedRobotHealthInterfacePrx aggregatedRobotHealthTopicPrx;
TextListenerInterfacePrx textToSpeechTopic;
// RobotHealthInterface interface
public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment