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
Sync Ionic and Jetty directories with Harmonic (gazebosim#599)
* Updates from Harmonic/Ionic to Jetty
Signed-off-by: Addisu Z. Taddese <[email protected]>
* Updates from Harmonic to Ionic
Signed-off-by: Addisu Z. Taddese <[email protected]>
* Update rosdep instructions
Signed-off-by: Addisu Z. Taddese <[email protected]>
* Keep the skip-keys on gz-cmake3
Signed-off-by: Addisu Z. Taddese <[email protected]>
---------
Signed-off-by: Addisu Z. Taddese <[email protected]>
You can omit the following from what you pass to `bridge_params`: `{}`, ``, `"`, `'`.
92
+
93
+
More info about using QOS overrides can be found [here](https://docs.ros.org/en/jazzy/How-To-Guides/Overriding-QoS-Policies-For-Recording-And-Playback.html#using-qos-overrides)
94
+
85
95
## Launching the bridge from a custom launch file in XML.
86
96
87
97
It's also possible to trigger the bridge from your custom launch file. For that
88
98
purpose we have created the `<ros_gz_bridge/>` tag that can be used from you
89
99
XML or YAML launch file. In this case, the arguments are passed as attributes
90
-
within this tag. Here's an example:
100
+
within this tag. Here's a simplified example, a more comprehensive example can be viewed [here](https://github.com/gazebosim/ros_gz/blob/ros2/ros_gz_bridge/launch/ros_gz_bridge.launch):
Copy file name to clipboardExpand all lines: ionic/ros2_launch_gazebo.md
+26-22Lines changed: 26 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,45 +54,49 @@ an option but not strictly necessary as you could decide to hardcode some of the
54
54
values or not even use all the parameters.
55
55
56
56
### Python
57
-
Python launch files provide more low-level customization and logic compared to XML launch files.
58
-
In the following example, the user can specify a world argument to launch an environment for
59
-
the Moon, Mars, or Enceladus. It additionally sets the resource path environment variable and
60
-
sets up empty arrays for topics to be bridged and remapped from Gazebo to ROS 2:
57
+
Python launch files provide more low-level customization and logic compared to XML launch files. For example, you can set environment variables and include Python specific functions and logic.
58
+
In the following example, the user can replace the example package, world, and bridged topic with their own. This is intended as a scaffolding more than something that can be run on its own.
59
+
61
60
```python
62
-
from ament_index_python.packages import get_package_share_directory
63
61
from launch import LaunchDescription
64
-
from launch.actions import (DeclareLaunchArgument, SetEnvironmentVariable,
65
-
IncludeLaunchDescription, SetLaunchConfiguration)
66
-
from launch.substitutions import PathJoinSubstitution, LaunchConfiguration, TextSubstitution
67
62
from launch_ros.actions import Node
63
+
from launch.actions import SetEnvironmentVariable, IncludeLaunchDescription
68
64
from launch.launch_description_sources import PythonLaunchDescriptionSource
65
+
from launch.substitutions import PathJoinSubstitution
66
+
from launch_ros.substitutions import FindPackageShare
You can omit the following from what you pass to `bridge_params`: `{}`, ``, `"`, `'`.
73
92
74
-
## Launching the bridge from a custom launch file.
93
+
More info about using QOS overrides can be found [here](https://docs.ros.org/en/jazzy/How-To-Guides/Overriding-QoS-Policies-For-Recording-And-Playback.html#using-qos-overrides)
94
+
95
+
## Launching the bridge from a custom launch file in XML.
75
96
76
97
It's also possible to trigger the bridge from your custom launch file. For that
77
98
purpose we have created the `<ros_gz_bridge/>` tag that can be used from you
78
99
XML or YAML launch file. In this case, the arguments are passed as attributes
79
-
within this tag. Here's an example:
100
+
within this tag. Here's a simplified example, a more comprehensive example can be viewed [here](https://github.com/gazebosim/ros_gz/blob/ros2/ros_gz_bridge/launch/ros_gz_bridge.launch):
0 commit comments