From 3970c7ea2ad46ab58999f201a0de85cb87a79064 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Thu, 16 Aug 2018 11:59:26 -0700 Subject: [PATCH] add ros1_bridge mapping rule --- rosapi/CMakeLists.txt | 5 +++++ rosapi/mapping_rules.yaml | 8 ++++++++ rosapi/package.xml | 1 + 3 files changed, 14 insertions(+) create mode 100644 rosapi/mapping_rules.yaml diff --git a/rosapi/CMakeLists.txt b/rosapi/CMakeLists.txt index d392c23b4..c99fcb6b7 100644 --- a/rosapi/CMakeLists.txt +++ b/rosapi/CMakeLists.txt @@ -45,3 +45,8 @@ ament_package() install(PROGRAMS scripts/rosapi_node DESTINATION lib/${PROJECT_NAME} ) + +install( + FILES mapping_rules.yaml + DESTINATION share/${PROJECT_NAME} +) diff --git a/rosapi/mapping_rules.yaml b/rosapi/mapping_rules.yaml new file mode 100644 index 000000000..ae367c8a1 --- /dev/null +++ b/rosapi/mapping_rules.yaml @@ -0,0 +1,8 @@ +- + ros1_package_name: 'rosapi' + ros1_service_name: 'GetParam' + ros2_package_name: 'rosapi' + ros2_service_name: 'GetParam' + request_fields_1_to_2: + name: 'name' + default: 'default_value' diff --git a/rosapi/package.xml b/rosapi/package.xml index 1eb41214c..aa6392877 100644 --- a/rosapi/package.xml +++ b/rosapi/package.xml @@ -33,5 +33,6 @@ ament_cmake +