You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Note that before `rostopic echo` would work with bridged topics, a subscriber mu
14
14
You can use the `--bridge-all-2to1-topics` option to bridge all ROS 2 topics to ROS 1 so that tools such as `rostopic list` and `rqt` will see the topics even if there are no matching ROS 1 subscribers.
15
15
Run `ros2 run ros1_bridge dynamic_bridge -- --help` for more options.
16
16
17
-
If you want to specify topics you want to bridge, run `ros2 run ros1_bridge parameter_bridge`. See [here](doc/parameter_bridge.rst) for more information.
17
+
If you want to specify messages/services you want to bridge, run `ros2 run ros1_bridge parameter_bridge`. See [here](doc/parameter_bridge.rst) for more information.
Copy file name to clipboardExpand all lines: doc/parameter_bridge.rst
+28-8Lines changed: 28 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
+
1
2
parameter_bridge configuration
2
3
==============================
3
4
4
5
You can launch parameter_bridge with the following command::
5
6
6
-
ros2 run ros1_bridge parameter_bridge
7
+
ros2 run ros1_bridge parameter_bridge [<topics_name> [<services_1_to_2_name> [<services_2_to_1_name>]]]
7
8
8
-
Parameter bridge reads ``/topics`` parameter on ROS1 to make your bridge. Here is an example of configuration::
9
+
Parameter bridge reads ``topics``, ``services_1_to_2``, and ``services_2_to_1`` parameters on ROS1 as default to make your bridge. You can specify the names of those parameters as arguments of the command. Here is an example of configuration::
9
10
10
11
<rosparam>
11
12
topics:
@@ -45,6 +46,16 @@ Parameter bridge reads ``/topics`` parameter on ROS1 to make your bridge. Here i
45
46
transient_local: true
46
47
reliable: true
47
48
latch: true
49
+
50
+
services_1_to_2:
51
+
-
52
+
service: /gazebo/pause_physics
53
+
type: std_srvs/srv/Empty
54
+
55
+
services_2_to_1:
56
+
-
57
+
service: /reinitialize_global_localization
58
+
type: std_srvs/srv/Empty
48
59
</rosparam>
49
60
50
61
Configuration Syntax
@@ -58,10 +69,19 @@ Configuration Syntax
58
69
:widths: 20, 10, 10, 50
59
70
60
71
**topic**, YES, N/A, Name of the topic to bridge which is used in both ROS1/2
61
-
**type**, YES, N/A, message type in ROS2 (see `here <./index.rst>`_ how to map ROS1 and ROS2 messages)
62
-
**queue_size**, NO, 100, queue size used in both ROS1/2
72
+
**type**, YES, N/A, Message type in ROS2 (see `here <./index.rst>`_ how to map ROS1 and ROS2 messages)
73
+
**queue_size**, NO, 100, Queue size used in both ROS1/2
63
74
**direction**, NO, bidirectionl, ``bidirectional`` or ``1to2`` or ``2to1``
64
-
**transient_local**, NO, false, set ROS2 QoS durability profile transient_local (used both for 1to2 and 2to1)
65
-
**reliable**, NO, false, set ROS2 QoS durability profile reliable (used both for 1to2 and 2to1)
66
-
**latch**, NO, false, publish ROS1 message with latch option (used only for 2to1)
67
-
75
+
**transient_local**, NO, false, Set ROS2 QoS durability profile transient_local (used both for 1to2 and 2to1)
76
+
**reliable**, NO, false, Set ROS2 QoS durability profile reliable (used both for 1to2 and 2to1)
77
+
**latch**, NO, false, Publish ROS1 message with latch option (used only for 2to1)
78
+
- **services_1_to_2**: <array of **service**>, ROS1 services will be available in ROS2
79
+
- **services_2_to_1**: <array of **service**>, ROS2 services will be available in ROS1
80
+
- **service**: <dict>
81
+
82
+
.. csv-table::
83
+
:header: "key", "required", "description"
84
+
:widths: 20, 10, 60
85
+
86
+
**service**, YES, Name of the service to bridge which is used in both ROS1/2
87
+
**type**, YES, Service type in ROS2 (see `here <./index.rst>`_ how to map ROS1 and ROS2 messages)
0 commit comments