-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ros2interface test dependencies on builtin interface (#579)
* Update tests to avoid using buildin_interfaces Signed-off-by: Audrow <audrow.nash@gmail.com> * Create ros2cli_test_msgs package with interfaces Signed-off-by: Audrow Nash <audrow.nash@gmail.com> * Update ros2interface show to use ros2cli_test_msgs Signed-off-by: Audrow Nash <audrow.nash@gmail.com> * List ros2cli_test_msgs as a test dependency of ros2cli Signed-off-by: Audrow Nash <audrow.nash@gmail.com> * Change ros2cli_test_msgs to ros2cli_test_interfaces Signed-off-by: Audrow Nash <audrow.nash@gmail.com> * Correct test interfaces dependency in package.xml Signed-off-by: Audrow Nash <audrow.nash@gmail.com> * Remove ros2cli_test_interfaces from ros2cli test dependencies Signed-off-by: Audrow Nash <audrow.nash@gmail.com>
- Loading branch information
Showing
9 changed files
with
195 additions
and
380 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(ros2cli_test_interfaces) | ||
|
||
# Default to C++14 | ||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 14) | ||
endif() | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() | ||
|
||
find_package(ament_cmake REQUIRED) | ||
find_package(rosidl_default_generators REQUIRED) | ||
|
||
rosidl_generate_interfaces(${PROJECT_NAME} | ||
"action/ShortVariedMultiNested.action" | ||
"msg/ShortVaried.msg" | ||
"msg/ShortVariedMultiNested.msg" | ||
"msg/ShortVariedNested.msg" | ||
"srv/ShortVariedMultiNested.srv" | ||
ADD_LINTER_TESTS | ||
) | ||
|
||
ament_export_dependencies(rosidl_default_runtime) | ||
|
||
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,8 @@ | ||
# Goal definition | ||
ShortVariedNested short_varied_nested # Comment - Nesting Level 3: 1 of 2 | ||
--- | ||
# Result definition | ||
bool bool_value # Comment - Nesting Level 3: 2 of 2 | ||
--- | ||
# Feedback definition | ||
bool[3] bool_values |
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,8 @@ | ||
# A constant | ||
bool BOOL_CONST=true # Comment - Nesting Level 1: 1 of 2 | ||
|
||
# Bool and array of bools | ||
bool bool_value | ||
bool[<=3] bool_values # Comment - Nesting Level 1: 2 of 2 | ||
|
||
# Trailing comment |
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 @@ | ||
# A short, varied, and nested type | ||
ShortVariedNested short_varied_nested # Comment - Nesting Level 3: 1 of 1 | ||
# Trailing comment |
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 @@ | ||
# A short, varied type | ||
ShortVaried short_varied # Comment - Nesting Level 2: 1 of 1 | ||
# Trailing comment |
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>ros2cli_test_interfaces</name> | ||
<version>1.0.1</version> | ||
<description>A package containing interface definitions for testing ros2cli.</description> | ||
<maintainer email="clairewang@openrobotics.org">Claire Wang</maintainer> | ||
<maintainer email="mabel@openrobotics.org">Mabel Zhang</maintainer> | ||
<license>Apache License 2.0</license> | ||
<author email="audrow@osrfoundation.org">Audrow Nash</author> | ||
|
||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
|
||
<buildtool_depend>rosidl_default_generators</buildtool_depend> | ||
|
||
<depend>action_msgs</depend> | ||
|
||
<exec_depend>rosidl_default_runtime</exec_depend> | ||
|
||
<test_depend>ament_lint_common</test_depend> | ||
|
||
<member_of_group>rosidl_interface_packages</member_of_group> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</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,5 @@ | ||
# Request | ||
ShortVariedNested short_varied_nested # Comment - Nesting Level 3: 1 of 2 | ||
--- | ||
# Response | ||
bool bool_value # Comment - Nesting Level 3: 2 of 2 |
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.