forked from AimRT/AimRT
-
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.
Test: Add a test case for chained RPC calls (AimRT#111)
* add new option to rename service_name * Modify the logic * add zenoh proxy server * opt code --------- Co-authored-by: hanjun <hanjun@agibot.com>
- Loading branch information
1 parent
dca7399
commit 4bfe31f
Showing
36 changed files
with
755 additions
and
24 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
54 changes: 54 additions & 0 deletions
54
src/examples/cpp/pb_rpc/install/linux/bin/cfg/examples_cpp_pb_proxy_rpc_co_cfg.yaml
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,54 @@ | ||
# Copyright (c) 2023, AgiBot Inc. | ||
# All rights reserved. | ||
|
||
aimrt: | ||
log: | ||
core_lvl: INFO # Trace/Debug/Info/Warn/Error/Fatal/Off | ||
backends: | ||
- type: console | ||
executor: | ||
executors: | ||
- name: work_thread_pool | ||
type: asio_thread | ||
options: | ||
thread_num: 4 | ||
- name: timeout_handle | ||
type: time_wheel | ||
options: | ||
bind_executor: work_thread_pool | ||
rpc: | ||
backends: | ||
- type: local | ||
options: | ||
timeout_executor: timeout_handle | ||
clients_options: | ||
- func_name: "(.*)" | ||
enable_backends: [local] | ||
servers_options: | ||
- func_name: "(.*)" | ||
enable_backends: [local] | ||
module: | ||
pkgs: | ||
- path: ./libpb_rpc_client_pkg.so | ||
enable_modules: [NormalRpcCoClientModule] | ||
- path: ./libpb_rpc_server_pkg.so | ||
enable_modules: [ProxyRpcCoModule,NormalRpcCoServerModule] | ||
modules: | ||
- name: NormalRpcCoClientModule | ||
log_lvl: INFO | ||
- name: ProxyRpcCoModule | ||
log_lvl: INFO | ||
- name: NormalRpcCoServerModule | ||
log_lvl: INFO | ||
|
||
# Module custom configuration | ||
NormalRpcCoClientModule: | ||
rpc_frq: 0.5 | ||
service_name: "ExampleService_1" | ||
|
||
ProxyRpcCoModule: | ||
service_name_for_client: "ExampleService_2" | ||
service_name_for_server: "ExampleService_1" | ||
|
||
NormalRpcCoServerModule: | ||
service_name: "ExampleService_2" |
3 changes: 3 additions & 0 deletions
3
src/examples/cpp/pb_rpc/install/linux/bin/start_examples_cpp_pb_proxy_rpc_co.sh
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,3 @@ | ||
#!/bin/bash | ||
|
||
./aimrt_main --cfg_file_path=./cfg/examples_cpp_pb_proxy_rpc_co_cfg.yaml |
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
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
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
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
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
Oops, something went wrong.