Skip to content

Commit

Permalink
Add bridge mapping rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ruffsl committed Jun 17, 2021
1 parent 3af19c9 commit 227004b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions action_tutorials/action_tutorials_interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ find_package(rosidl_default_generators REQUIRED)
rosidl_generate_interfaces(${PROJECT_NAME}
"action/Fibonacci.action")

install(
FILES action_bridge_mapping_rule.yaml
DESTINATION share/${PROJECT_NAME}
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file defines mappings between ROS 1 and ROS 2 interfaces.
# It is used with the ros1_bridge to allow for communcation between ROS 1 and ROS 2.

-
ros1_package_name: 'actionlib_tutorials'
ros1_action_name: 'Fibonacci'
ros2_package_name: 'action_tutorials_interfaces'
ros2_action_name: 'Fibonacci'
feedback_fields_1_to_2:
sequence: 'partial_sequence'
1 change: 1 addition & 0 deletions action_tutorials/action_tutorials_interfaces/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
<member_of_group>rosidl_interface_packages</member_of_group>
<export>
<build_type>ament_cmake</build_type>
<ros1_bridge mapping_rules="action_bridge_mapping_rule.yaml" />
</export>
</package>

0 comments on commit 227004b

Please sign in to comment.