Skip to content

Commit

Permalink
Add mapping file for ROS 1 bridge (#67)
Browse files Browse the repository at this point in the history
* Add mapping file for ROS 1 bridge

Signed-off-by: Juan Rodriguez Hortala <hortala@amazon.com>

* remove trailing spaces

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
  • Loading branch information
juanrh authored and dirk-thomas committed May 16, 2019
1 parent 641b579 commit 68e0732
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rcl_interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ rosidl_generate_interfaces(${PROJECT_NAME}
DEPENDENCIES builtin_interfaces
)

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

# this must happen before the invocation of ament_package()
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
Expand Down
13 changes: 13 additions & 0 deletions rcl_interfaces/mapping_rules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-
ros1_package_name: 'rosgraph_msgs'
ros1_message_name: 'Log'
ros2_package_name: 'rcl_interfaces'
ros2_message_name: 'Log'
fields_1_to_2:
header.stamp: 'stamp'
level: 'level'
name: 'name'
msg: 'msg'
file: 'file'
function: 'function'
line: 'line'
1 change: 1 addition & 0 deletions rcl_interfaces/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@

<export>
<build_type>ament_cmake</build_type>
<ros1_bridge mapping_rules="mapping_rules.yaml"/>
</export>
</package>

0 comments on commit 68e0732

Please sign in to comment.