-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* preliminary c ts impl for service introspection msg gen * preliminary cpp ts impl for service introspection msg gen Signed-off-by: Brian Chen <[email protected]> Signed-off-by: Jacob Perron <[email protected]> Signed-off-by: Ivan Santiago Paunovic <[email protected]> Signed-off-by: Chris Lalancette <[email protected]>
- Loading branch information
Showing
13 changed files
with
477 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
project(rosidl_typesupport_tests) | ||
|
||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() | ||
|
||
find_package(ament_cmake REQUIRED) | ||
|
||
if(BUILD_TESTING) | ||
find_package(ament_lint_auto REQUIRED) | ||
ament_lint_auto_find_test_dependencies() | ||
find_package(rosidl_cmake REQUIRED) | ||
find_package(ament_cmake_gtest REQUIRED) | ||
find_package(test_interface_files REQUIRED) | ||
find_package(rcutils REQUIRED) | ||
|
||
rosidl_generate_interfaces(${PROJECT_NAME} | ||
${test_interface_files_MSG_FILES} | ||
${test_interface_files_SRV_FILES} | ||
${test_interface_files_ACTION_FILES} | ||
SKIP_INSTALL | ||
) | ||
|
||
rosidl_get_typesupport_target(cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp") | ||
rosidl_get_typesupport_target(c_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_c") | ||
|
||
ament_add_gtest(test_service_typesupport_cpp | ||
test/rosidl_typesupport_cpp/test_service_typesupport.cpp | ||
) | ||
target_link_libraries(test_service_typesupport_cpp | ||
"${cpp_typesupport_target}" | ||
) | ||
|
||
ament_add_gtest(test_service_typesupport_c | ||
test/rosidl_typesupport_c/test_service_typesupport.cpp | ||
) | ||
target_link_libraries(test_service_typesupport_c | ||
"${c_typesupport_target}" | ||
) | ||
endif() | ||
|
||
ament_package() |
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,27 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>rosidl_typesupport_tests</name> | ||
<version>2.2.0</version> | ||
<description>Test rosidl_typesupport_c and rosidl_typesupport_cpp packages</description> | ||
<maintainer email="[email protected]">Jacob Perron</maintainer> | ||
<license>Apache License 2.0</license> | ||
<author email="[email protected]">Brian Chen</author> | ||
|
||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
|
||
<test_depend>ament_lint_auto</test_depend> | ||
<test_depend>ament_lint_common</test_depend> | ||
<test_depend>ament_cmake_gtest</test_depend> | ||
<test_depend>rcutils</test_depend> | ||
<test_depend>rosidl_cmake</test_depend> | ||
<test_depend>rosidl_typesupport_c</test_depend> | ||
<test_depend>rosidl_typesupport_cpp</test_depend> | ||
<test_depend>test_interface_files</test_depend> | ||
<test_depend>service_msgs</test_depend> | ||
<test_depend>action_msgs</test_depend> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</package> |
Oops, something went wrong.