18 if (
iChat ==
nullptr || p==
nullptr)
39 toSend.addString(response);
yarp::dev::IChatBot * m_iChatBot
yarp::os::Port * m_outPort
bool setCommunications(yarp::dev::IChatBot *iser, yarp::os::Port *port)
void onRead(yarp::os::Bottle &b) override
virtual yarp::dev::ReturnValue interact(const std::string &messageIn, std::string &messageOut)=0
Sends a message to the chatbot.
A simple collection of objects that can be described and transmitted in a portable way.
Value & get(size_type index) const
Reads a Value v from a certain part of the list.
A mini-server for performing network communication in the background.
A mini-server for network communication.
int getOutputCount() override
Determine how many output connections this port has.
bool write(const PortWriter &writer, const PortWriter *callback=nullptr) const override
Write an object to the port.
virtual std::string asString() const
Get string value.
#define yCError(component,...)
#define yCWarning(component,...)
#define YARP_LOG_COMPONENT(name,...)