File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ GenericClient::GenericClient(
3434 ts_lib_ = get_typesupport_library (
3535 service_type, " rosidl_typesupport_cpp" );
3636
37- auto service_ts_ = get_typesupport_handle< rosidl_service_type_support_t > (
37+ auto service_ts_ = get_service_typesupport_handle (
3838 service_type, " rosidl_typesupport_cpp" , *ts_lib_);
3939
4040 auto response_type_support_intro = get_message_typesupport_handle (
Original file line number Diff line number Diff line change @@ -63,6 +63,17 @@ if(TARGET test_create_timer)
6363 target_link_libraries (test_create_timer ${PROJECT_NAME} )
6464 target_include_directories (test_create_timer PRIVATE ./)
6565endif ()
66+ ament_add_gtest(test_generic_client test_generic_client.cpp)
67+ if (TARGET test_generic_client)
68+ target_link_libraries (test_generic_client ${PROJECT_NAME}
69+ mimick
70+ ${rcl_interfaces_TARGETS}
71+ rmw::rmw
72+ rosidl_runtime_cpp::rosidl_runtime_cpp
73+ rosidl_typesupport_cpp::rosidl_typesupport_cpp
74+ ${test_msgs_TARGETS}
75+ )
76+ endif ()
6677ament_add_gtest(test_create_subscription test_create_subscription.cpp)
6778if (TARGET test_create_subscription)
6879 target_link_libraries (test_create_subscription ${PROJECT_NAME} ${test_msgs_TARGETS} )
You can’t perform that action at this time.
0 commit comments