-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added vendor installation support for Jazzy and Rolling (#87)
Support for ROS 2 vendor packages installing Gazebo. --------- Signed-off-by: Saurabh Kamat <[email protected]> Co-authored-by: Jose Luis Rivero <[email protected]>
- Loading branch information
Showing
6 changed files
with
163 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -310,3 +310,31 @@ jobs: | |
source /opt/ros/humble/setup.bash | ||
ros2 pkg list | grep ros_gz | ||
ign gazebo --version | grep 'version 6.*' | ||
test_install_ros_gz_vendor: | ||
name: 'Install Harmonic on Jazzy through vendor packages' | ||
env: | ||
ROS_DISTROS: 'jazzy' | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ubuntu:noble | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '20.x' | ||
- name: 'Install ROS 2 Jazzy' | ||
uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: ${{ env.ROS_DISTROS }} | ||
- name: 'Install Gazebo with ros_gz' | ||
uses: ./ | ||
with: | ||
required-gazebo-distributions: 'harmonic' | ||
install-ros-gz: ${{ env.ROS_DISTROS }} | ||
- name: Test Jazzy ros_gz installation | ||
run: | | ||
source /opt/ros/jazzy/setup.bash | ||
! [ $(apt list --installed gz-harmonic) ] | ||
ros2 pkg list | grep ros_gz | ||
gz sim --version | grep 'version 8.[0-9*].[0-9*]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,6 +246,8 @@ This workflow shows how to use binaries from [pre-release] or [nightly] Gazebo r | |
|
||
This workflow shows how to install ROS 2 using the GitHub action `ros-tooling/setup-ros` along with Gazebo installed using `setup-gazebo`. The `ros-gz` package can be installed by setting the input parameter `install-ros-gz` to the required ROS 2 distributions. | ||
|
||
Starting with ROS 2 Jazzy, Gazebo is also available to be installed from ROS packages via [vendor packages]. When using `install-ros-gz` this action will check for availability of these Gazebo vendor packages and install them if available for the specified ROS 2 distribution. Only the default (recommended) Gazebo release is currently available for the ROS 2 releases using the vendor packages (i.e if ROS 2 Jazzy is used, only Gazebo Harmonic is the valid option). More information on vendor packages can be found in the [official documentation]. | ||
|
||
```yaml | ||
jobs: | ||
test_gazebo: | ||
|
@@ -282,19 +284,20 @@ This workflow shows how to install ROS 2 using the GitHub action `ros-tooling/se | |
This workflow shows how to install Gazebo on a macOS worker using the Homebrew package manager which is installed by the action. To run, this action needs an input for `required-gazebo-distributions` parameter. | ||
|
||
```yaml | ||
test_gazebo: | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '20.x' | ||
- name: 'Check Gazebo installation on MacOS runner' | ||
uses: gazebo-tooling/[email protected] | ||
with: | ||
required-gazebo-distributions: 'harmonic' | ||
- name: 'Test Gazebo installation' | ||
run: 'gz sim --versions' | ||
jobs: | ||
test_gazebo: | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '20.x' | ||
- name: 'Check Gazebo installation on MacOS runner' | ||
uses: gazebo-tooling/[email protected] | ||
with: | ||
required-gazebo-distributions: 'harmonic' | ||
- name: 'Test Gazebo installation' | ||
run: 'gz sim --versions' | ||
``` | ||
|
||
### Windows | ||
|
@@ -304,23 +307,24 @@ This workflow shows how to install Gazebo on a Windows worker. The action requir | |
#### Setting up worker to install Gazebo on Windows | ||
|
||
```yaml | ||
test_gazebo: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '20.x' | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
- name: 'Check Gazebo installation on Windows runner' | ||
uses: gazebo-tooling/[email protected] | ||
with: | ||
required-gazebo-distributions: 'harmonic' | ||
- name: 'Test Gazebo installation' | ||
shell: pwsh | ||
run: | | ||
conda activate | ||
gz sim --versions | ||
jobs: | ||
test_gazebo: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '20.x' | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
- name: 'Check Gazebo installation on Windows runner' | ||
uses: gazebo-tooling/[email protected] | ||
with: | ||
required-gazebo-distributions: 'harmonic' | ||
- name: 'Test Gazebo installation' | ||
shell: pwsh | ||
run: | | ||
conda activate | ||
gz sim --versions | ||
``` | ||
|
||
## License | ||
|
@@ -332,3 +336,5 @@ The scripts and documentation in this project are released under the [Apache 2]( | |
[best-effort]: https://gazebosim.org/docs/harmonic/releases#supported-platforms | ||
[pre-release]: https://packages.osrfoundation.org/gazebo/ubuntu-prerelease/ | ||
[nightly]: https://packages.osrfoundation.org/gazebo/ubuntu-nightly/ | ||
[vendor packages]: https://gazebosim.org/docs/ionic/ros_installation/#ros-2-gazebo-vendor-packages | ||
[official documentation]: https://gazebosim.org/docs/ionic/ros2_gz_vendor_pkgs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters