Skip to content

Commit

Permalink
Updated to use cmake 3.5
Browse files Browse the repository at this point in the history
Added ros1_bridge mapping
  • Loading branch information
bponsler committed Jul 5, 2017
1 parent 502aa34 commit f81ff9c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.5)
project(urg_node_msgs)

find_package(ament_cmake REQUIRED)
Expand All @@ -16,4 +16,10 @@ rosidl_generate_interfaces(urg_node_msgs
DEPENDENCIES builtin_interfaces std_msgs
)

# Install mapping rules for the ros1_bridge
install(
FILES mapping_rules.yaml
DESTINATION share/${PROJECT_NAME}
)

ament_package()
7 changes: 7 additions & 0 deletions mapping_rules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 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: 'urg_node'
ros2_package_name: 'urg_node_msgs'

1 change: 1 addition & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@

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

0 comments on commit f81ff9c

Please sign in to comment.