31 std::lock_guard <std::mutex>
lg(m_mutex);
33 std::string messageOut;
35 if(!m_iChatBot->
interact(messageIn,messageOut))
49 std::lock_guard <std::mutex>
lg(m_mutex);
61 std::lock_guard <std::mutex>
lg(m_mutex);
79 std::lock_guard <std::mutex>
lg(m_mutex);
97 std::lock_guard <std::mutex>
lg(m_mutex);
bool setLanguageRPC(const std::string &language) override
return_interact interactRPC(const std::string &messageIn) override
bool setInterfaces(yarp::dev::IChatBot *iChatBot)
bool resetBotRPC() override
return_getStatus getStatusRPC() override
return_getLanguage getLanguageRPC() override
virtual bool getStatus(std::string &status)=0
Gets the current status of the bot.
virtual bool resetBot()=0
Resets the chatbot.
virtual bool setLanguage(const std::string &language="auto")=0
Sets the chat bot language.
virtual bool getLanguage(std::string &language)=0
Gets the current chatbot language.
virtual bool interact(const std::string &messageIn, std::string &messageOut)=0
Sends a message to the chatbot.
A mini-server for performing network communication in the background.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)