From 52560fcab1808bf47f49a79c0d4a089e4fa7d5f0 Mon Sep 17 00:00:00 2001 From: Jacob Perron Date: Fri, 19 Jul 2019 17:33:17 -0700 Subject: [PATCH] Add Arrays.srv (#7) This acts as a regression test for building services with the same name and array type in the request and response. See https://github.com/ros2/rosidl/issues/386 Signed-off-by: Jacob Perron --- CMakeLists.txt | 3 ++- srv/Arrays.srv | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 srv/Arrays.srv diff --git a/CMakeLists.txt b/CMakeLists.txt index a3c042e..d81dc89 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,8 +19,9 @@ set(msg_files ) set(srv_files - "srv/Empty.srv" + "srv/Arrays.srv" "srv/BasicTypes.srv" + "srv/Empty.srv" ) set(action_files diff --git a/srv/Arrays.srv b/srv/Arrays.srv new file mode 100644 index 0000000..4c96820 --- /dev/null +++ b/srv/Arrays.srv @@ -0,0 +1,63 @@ +bool[3] bool_values +byte[3] byte_values +char[3] char_values +float32[3] float32_values +float64[3] float64_values +int8[3] int8_values +uint8[3] uint8_values +int16[3] int16_values +uint16[3] uint16_values +int32[3] int32_values +uint32[3] uint32_values +int64[3] int64_values +uint64[3] uint64_values +string[3] string_values +BasicTypes[3] basic_types_values +Constants[3] constants_values +Defaults[3] defaults_values +bool[3] bool_values_default [false, true, false] +byte[3] byte_values_default [0, 1, 255] +char[3] char_values_default [0, 1, 127] +float32[3] float32_values_default [1.125, 0.0, -1.125] +float64[3] float64_values_default [3.1415, 0.0, -3.1415] +int8[3] int8_values_default [0, 127, -128] +uint8[3] uint8_values_default [0, 1, 255] +int16[3] int16_values_default [0, 32767, -32768] +uint16[3] uint16_values_default [0, 1, 65535] +int32[3] int32_values_default [0, 2147483647, -2147483648] +uint32[3] uint32_values_default [0, 1, 4294967295] +int64[3] int64_values_default [0, 9223372036854775807, -9223372036854775808] +uint64[3] uint64_values_default [0, 1, 18446744073709551615] +string[3] string_values_default ["", "max value", "min value"] +--- +bool[3] bool_values +byte[3] byte_values +char[3] char_values +float32[3] float32_values +float64[3] float64_values +int8[3] int8_values +uint8[3] uint8_values +int16[3] int16_values +uint16[3] uint16_values +int32[3] int32_values +uint32[3] uint32_values +int64[3] int64_values +uint64[3] uint64_values +string[3] string_values +BasicTypes[3] basic_types_values +Constants[3] constants_values +Defaults[3] defaults_values +bool[3] bool_values_default [false, true, false] +byte[3] byte_values_default [0, 1, 255] +char[3] char_values_default [0, 1, 127] +float32[3] float32_values_default [1.125, 0.0, -1.125] +float64[3] float64_values_default [3.1415, 0.0, -3.1415] +int8[3] int8_values_default [0, 127, -128] +uint8[3] uint8_values_default [0, 1, 255] +int16[3] int16_values_default [0, 32767, -32768] +uint16[3] uint16_values_default [0, 1, 65535] +int32[3] int32_values_default [0, 2147483647, -2147483648] +uint32[3] uint32_values_default [0, 1, 4294967295] +int64[3] int64_values_default [0, 9223372036854775807, -9223372036854775808] +uint64[3] uint64_values_default [0, 1, 18446744073709551615] +string[3] string_values_default ["", "max value", "min value"]