diff --git a/src/examples/cpp/executor/install/linux/bin/cfg/examples_cpp_timer_cfg.yaml b/src/examples/cpp/executor/install/linux/bin/cfg/examples_cpp_executor_timer_cfg.yaml similarity index 100% rename from src/examples/cpp/executor/install/linux/bin/cfg/examples_cpp_timer_cfg.yaml rename to src/examples/cpp/executor/install/linux/bin/cfg/examples_cpp_executor_timer_cfg.yaml diff --git a/src/examples/cpp/executor/install/linux/bin/start_examples_cpp_executor_timer.sh b/src/examples/cpp/executor/install/linux/bin/start_examples_cpp_executor_timer.sh new file mode 100755 index 000000000..724d5f192 --- /dev/null +++ b/src/examples/cpp/executor/install/linux/bin/start_examples_cpp_executor_timer.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./aimrt_main --cfg_file_path=./cfg/examples_cpp_executor_timer_cfg.yaml diff --git a/src/examples/cpp/executor/install/linux/bin/start_examples_cpp_timer.sh b/src/examples/cpp/executor/install/linux/bin/start_examples_cpp_timer.sh deleted file mode 100755 index 875bce8c8..000000000 --- a/src/examples/cpp/executor/install/linux/bin/start_examples_cpp_timer.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -./aimrt_main --cfg_file_path=./cfg/examples_cpp_timer_cfg.yaml diff --git a/src/interface/aimrt_module_cpp_interface/rpc/rpc_handle.h b/src/interface/aimrt_module_cpp_interface/rpc/rpc_handle.h index c1820009a..27b0e3412 100644 --- a/src/interface/aimrt_module_cpp_interface/rpc/rpc_handle.h +++ b/src/interface/aimrt_module_cpp_interface/rpc/rpc_handle.h @@ -19,7 +19,12 @@ using ServiceFunc = aimrt::util::Function; inline std::string GetFullFuncName( std::string_view rpc_type, std::string_view service_name, std::string_view func_name) { - return std::string(rpc_type) + ":/" + std::string(service_name) + "/" + std::string(func_name); + std::string full_name; + + full_name.reserve(rpc_type.size() + service_name.size() + func_name.size() + 3); + full_name.append(rpc_type).append(":/").append(service_name).append("/").append(func_name); + + return full_name; } class ServiceBase {