forked from robotology/yarp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added IChatBot thrift communication protocol
Added the thrift file and the generated c++ code for the communication protocol between chatBot_nws_yarp and chatBot_nwc_yarp
- Loading branch information
1 parent
e2b541a
commit df1e72d
Showing
20 changed files
with
4,643 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT) | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
if(NOT YARP_COMPILE_DEVICE_PLUGINS) | ||
return() | ||
endif() | ||
|
||
include(YarpChooseIDL) | ||
yarp_choose_idl(ICHATBOTMSGS_THRIFT IChatBotMsgs.thrift) | ||
|
||
add_library(IChatBotMsgs OBJECT) | ||
|
||
target_sources(IChatBotMsgs PRIVATE ${ICHATBOTMSGS_THRIFT_GEN_FILES}) | ||
|
||
target_link_libraries(IChatBotMsgs | ||
PRIVATE | ||
YARP::YARP_dev | ||
YARP::YARP_os | ||
YARP::YARP_sig | ||
) | ||
|
||
target_include_directories(IChatBotMsgs PUBLIC ${ICHATBOTMSGS_THRIFT_BUILD_INTERFACE_INCLUDE_DIRS}) | ||
|
||
set_property(TARGET IChatBotMsgs PROPERTY FOLDER "Devices/Shared") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT) | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
struct return_interact{ | ||
1: bool result; | ||
2: string messageOut; | ||
} | ||
|
||
struct return_getLanguage{ | ||
1: bool result; | ||
2: string language; | ||
} | ||
|
||
struct return_backupBot{ | ||
1: bool result; | ||
2: string backupString; | ||
} | ||
|
||
service IChatBotMsgs { | ||
return_interact interactRPC(1: string messageIn); | ||
bool setLanguageRPC(1: string language); | ||
return_getLanguage getLanguageRPC(); | ||
bool resetBotRPC(); | ||
return_backupBot backupBotRPC(); | ||
bool restoreBotRPC(1: string botToRestore); | ||
} |
Oops, something went wrong.