33 std::lock_guard <std::mutex>
lg(m_mutex);
35 std::string messageOut;
37 auto ret = m_iChatBot->
interact(messageIn, messageOut);
52 std::lock_guard <std::mutex>
lg(m_mutex);
66 std::lock_guard <std::mutex>
lg(m_mutex);
86 std::lock_guard <std::mutex>
lg(m_mutex);
106 std::lock_guard <std::mutex>
lg(m_mutex);
return_interact interactRPC(const std::string &messageIn) override
ReturnValue resetBotRPC() override
bool setInterfaces(yarp::dev::IChatBot *iChatBot)
return_getStatus getStatusRPC() override
return_getLanguage getLanguageRPC() override
ReturnValue setLanguageRPC(const std::string &language) override
yarp::dev::ReturnValue result
yarp::dev::ReturnValue result
yarp::dev::ReturnValue result
virtual yarp::dev::ReturnValue resetBot()=0
Resets the chatbot.
virtual yarp::dev::ReturnValue setLanguage(const std::string &language="auto")=0
Sets the chat bot language.
virtual yarp::dev::ReturnValue interact(const std::string &messageIn, std::string &messageOut)=0
Sends a message to the chatbot.
virtual yarp::dev::ReturnValue getLanguage(std::string &language)=0
Gets the current chatbot language.
virtual yarp::dev::ReturnValue getStatus(std::string &status)=0
Gets the current status of the bot.
A mini-server for performing network communication in the background.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.