Skip to content

Commit 5a5faa1

Browse files
authored
Merge pull request #527 from ANYbotics/feature/ros1_bridge_mapping_support
[ROS2][grid_map_msgs] Added explicit ros1_bridge mapping support
2 parents 7ba25bd + dbb7d11 commit 5a5faa1

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

grid_map_msgs/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ rosidl_generate_interfaces(${PROJECT_NAME}
2323
DEPENDENCIES std_msgs geometry_msgs
2424
)
2525

26+
install(
27+
FILES ros1_bridge_mapping.yaml
28+
DESTINATION share/${PROJECT_NAME})
29+
2630
ament_export_dependencies(rosidl_default_runtime)
2731

2832
ament_package()

grid_map_msgs/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424

2525
<export>
2626
<build_type>ament_cmake</build_type>
27+
<ros1_bridge mapping_rules="ros1_bridge_mapping.yaml"/>
2728
</export>
2829
</package>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-
2+
ros1_package_name: 'grid_map_msgs'
3+
ros1_message_name: 'GridMap'
4+
ros2_package_name: 'grid_map_msgs'
5+
ros2_message_name: 'GridMap'
6+
fields_2_to_1:
7+
header: "info.header"
8+
info: "info"
9+
layers: "layers"
10+
basic_layers: "basic_layers"
11+
data: "data"
12+
outer_start_index: "outer_start_index"
13+
inner_start_index: "inner_start_index"

0 commit comments

Comments
 (0)