Skip to content

Commit 71bc033

Browse files
Add support for ros1 bridge (#32)
* Add mapping to ROS gps_common messages for use with ros1_bridge
1 parent 460ebf3 commit 71bc033

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,8 @@ The node `fix_translator` converts [sensor_msgs/NavSatFix](http://docs.ros.org/a
3434
```
3535

3636
Only adjust the topic names after "to=" in each remap line.
37+
38+
Use with ros1_bridge
39+
--------------------------------
40+
41+
The [ros1_bridge](https://index.ros.org/p/ros1_bridge/) package must be built from source to enable playback of GPSFix and GPSStatus messages stored in ROS1 bags. This requires that the applicable ROS1 `gps_common` and ROS2 `gps_msgs` packages are first installed.

gps_msgs/CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
Changelog for package gps_msgs
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
Forthcoming
5+
------------------
6+
* Added mappings to the messages in the ROS gps_common package for use with ros1_bridge
47

58
1.0.3 (2020-06-10)
69
------------------

gps_msgs/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ rosidl_generate_interfaces(${PROJECT_NAME}
2121

2222
ament_export_dependencies(rosidl_default_runtime)
2323
ament_package()
24+
25+
install(
26+
FILES ros1_ros2_mapping.yaml
27+
DESTINATION share/${PROJECT_NAME}
28+
)

gps_msgs/package.xml

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

2121
<export>
2222
<build_type>ament_cmake</build_type>
23+
<ros1_bridge mapping_rules="ros1_ros2_mapping.yaml"/>
2324
</export>
2425
</package>

gps_msgs/ros1_ros2_mapping.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-
2+
ros1_package_name: 'gps_common'
3+
ros2_package_name: 'gps_msgs'

0 commit comments

Comments
 (0)