chatBot_nwc_yarp
: The client side of any IChatBot capable device.
More...
#include <networkWrappers/chatBot_nwc_yarp/ChatBot_nwc_yarp.h>
Public Member Functions | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. | |
bool | close () override |
Close the DeviceDriver. | |
yarp::dev::ReturnValue | interact (const std::string &messageIn, std::string &messageOut) override |
Sends a message to the chatbot. | |
yarp::dev::ReturnValue | setLanguage (const std::string &language) override |
Sets the chat bot language. | |
yarp::dev::ReturnValue | getLanguage (std::string &language) override |
Gets the current chatbot language. | |
yarp::dev::ReturnValue | getStatus (std::string &status) override |
Gets the current status of the bot. | |
yarp::dev::ReturnValue | resetBot () override |
Resets the chatbot. | |
![]() | |
DeviceDriver () | |
DeviceDriver (const DeviceDriver &other)=delete | |
DeviceDriver (DeviceDriver &&other) noexcept=delete | |
DeviceDriver & | operator= (const DeviceDriver &other)=delete |
DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
virtual | ~DeviceDriver () |
virtual std::string | id () const |
Return the id assigned to the PolyDriver. | |
virtual void | setId (const std::string &id) |
Set the id for this device. | |
template<class T > | |
bool | view (T *&x) |
Get an interface to the device driver. | |
virtual DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. | |
![]() | |
virtual | ~IChatBot () |
Destructor. | |
![]() | |
ChatBot_nwc_yarp_ParamsParser () | |
~ChatBot_nwc_yarp_ParamsParser () override=default | |
bool | parseParams (const yarp::os::Searchable &config) override |
Parse the DeviceDriver parameters. | |
std::string | getDeviceClassName () const override |
Get the name of the DeviceDriver class. | |
std::string | getDeviceName () const override |
Get the name of the device (i.e. | |
std::string | getDocumentationOfDeviceParams () const override |
Get the documentation of the DeviceDriver's parameters. | |
std::vector< std::string > | getListOfParams () const override |
Return a list of all params used by the device. | |
![]() | |
virtual | ~IDeviceDriverParams () |
Protected Attributes | |
IChatBotMsgs | m_thriftClient |
yarp::os::Port | m_thriftClientPort |
Additional Inherited Members | |
![]() | |
const std::string | m_device_classname = {"ChatBot_nwc_yarp"} |
const std::string | m_device_name = {"chatBot_nwc_yarp"} |
bool | m_parser_is_strict = false |
const parser_version_type | m_parser_version = {} |
const std::string | m_local_defaultValue = {""} |
const std::string | m_remote_defaultValue = {""} |
std::string | m_local = {} |
std::string | m_remote = {} |
chatBot_nwc_yarp
: The client side of any IChatBot capable device.
Parameters required by this device are shown in class: ChatBot_nwc_yarp_ParamsParser
Definition at line 23 of file ChatBot_nwc_yarp.h.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 49 of file ChatBot_nwc_yarp.cpp.
|
overridevirtual |
Gets the current chatbot language.
language | the returned string (code) representing the speech language (e.g. ita, eng...). Default value is "auto". |
Implements yarp::dev::IChatBot.
Definition at line 79 of file ChatBot_nwc_yarp.cpp.
|
overridevirtual |
Gets the current status of the bot.
status | the current bot status |
Implements yarp::dev::IChatBot.
Definition at line 91 of file ChatBot_nwc_yarp.cpp.
|
overridevirtual |
Sends a message to the chatbot.
messageIn | the text of the input message |
messageOut | the output message |
Implements yarp::dev::IChatBot.
Definition at line 55 of file ChatBot_nwc_yarp.cpp.
|
overridevirtual |
Open the DeviceDriver.
config | is a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device). |
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 18 of file ChatBot_nwc_yarp.cpp.
|
overridevirtual |
Resets the chatbot.
Implements yarp::dev::IChatBot.
Definition at line 103 of file ChatBot_nwc_yarp.cpp.
|
overridevirtual |
Sets the chat bot language.
language | a string (code) representing the speech language (e.g. ita, eng...). Default value is "auto". |
Implements yarp::dev::IChatBot.
Definition at line 68 of file ChatBot_nwc_yarp.cpp.
|
protected |
Definition at line 29 of file ChatBot_nwc_yarp.h.
|
protected |
Definition at line 32 of file ChatBot_nwc_yarp.h.