Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: sparate ros2 dependency in aimrt_py #117

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
format code
  • Loading branch information
zhangyi1357 committed Dec 3, 2024
commit c4cadcf8ca6c5b6ffff72efb291dca39cbcad854
6 changes: 2 additions & 4 deletions src/examples/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,11 @@ class TestResult:
default_ros2_rpc_srv_expected_outputs_python = [
R"Server handle new rpc call. "
R"req: example_ros2.srv.RosTestRpc_Request(data=[b'H', b'e', b'l', b'l', b'o', b' ', b'A', b'i', b'm', b'R', b'T', b'!']), "
R"return rsp: example_ros2.srv.RosTestRpc_Response(code=1000)"
]
R"return rsp: example_ros2.srv.RosTestRpc_Response(code=1000)"]
default_ros2_rpc_cli_expected_outputs_python = [
R"Call rpc done, status: suc, code 0, msg: OK, "
R"req: example_ros2.srv.RosTestRpc_Request(data=[b'H', b'e', b'l', b'l', b'o', b' ', b'A', b'i', b'm', b'R', b'T', b'!']), "
R"rsp: example_ros2.srv.RosTestRpc_Response(code=1000)"
]
R"rsp: example_ros2.srv.RosTestRpc_Response(code=1000)"]

# Default exit string
default_exit_string = "AimRT exit."
Expand Down
6 changes: 3 additions & 3 deletions src/runtime/python_runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ if(AIMRT_BUILD_WITH_ROS2)
target_sources(${CUR_TARGET_NAME}_ros2 PRIVATE ${ros2_files})

target_link_libraries(
${CUR_TARGET_NAME}_ros2
PRIVATE $<LINK_LIBRARY:WHOLE_ARCHIVE,aimrt::runtime::core>
aimrt::interface::aimrt_module_ros2_interface)
${CUR_TARGET_NAME}_ros2 #
PRIVATE $<LINK_LIBRARY:WHOLE_ARCHIVE,aimrt::runtime::core> #
aimrt::interface::aimrt_module_ros2_interface)

set_target_properties(${CUR_TARGET_NAME}_ros2 PROPERTIES OUTPUT_NAME "aimrt_python_runtime_ros2")
endif()
Loading