Skip to content

Commit e0493aa

Browse files
authored
Support noetic (#12)
* Disable shadows * Add gazebo_ros_pkgs dependency * Update comments about kinect model * Modified dockerfile * Update CI to build noetic image * Update CI to test on noetic environment * Update README * Fix typo
1 parent 946b520 commit e0493aa

File tree

8 files changed

+24
-10
lines changed

8 files changed

+24
-10
lines changed

Diff for: .docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ COPY . pcl_tutorials_ros
1111
# The add-apt-repository command needs software-properties-common package.
1212
# https://github.com/IntelRealSense/librealsense/blob/c94410a420b74e5fb6a414bd12215c05ddd82b69/doc/distribution_linux.md
1313
RUN apt-get update && \
14-
apt-get install -y software-properties-common && \
14+
apt-get install -y software-properties-common git && \
1515
apt-key adv --keyserver keyserver.ubuntu.com --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || \
1616
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE && \
1717
add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" -u && \

Diff for: .docker/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ rocker --x11 --net=host --privileged \
5656

5757
```sh
5858
$ cd pcl_tutorials_ros/.docker
59-
$ ./build.sh melodic
59+
$ ./build.sh noetic
6060
...
61-
Successfully tagged pcl_tutorials_ros:melodic
61+
Successfully tagged pcl_tutorials_ros:noetic
6262
```
6363

6464
## References

Diff for: .github/workflows/build_docker_image.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ on:
99
env:
1010
REGISTRY: ghcr.io
1111
IMAGE_NAME: ${{ github.repository }}
12-
ROS_DISTRO: melodic
1312

1413
jobs:
1514
build-and-push-image:
15+
strategy:
16+
matrix:
17+
env:
18+
- { ROS_DISTRO: melodic}
19+
- { ROS_DISTRO: noetic}
20+
1621
runs-on: ubuntu-latest
1722
permissions:
1823
contents: read
@@ -35,13 +40,13 @@ jobs:
3540
with:
3641
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3742
tags: |
38-
type=raw,value=${{ env.ROS_DISTRO }}
43+
type=raw,value=${{ matrix.env.ROS_DISTRO }}
3944
4045
- name: Build and push Docker image
4146
uses: docker/build-push-action@v3
4247
with:
4348
file: .docker/Dockerfile
44-
build-args: ROS_DISTRO=${{ env.ROS_DISTRO }}
49+
build-args: ROS_DISTRO=${{ matrix.env.ROS_DISTRO }}
4550
push: true
4651
tags: ${{ steps.meta.outputs.tags }}
4752
labels: ${{ steps.meta.outputs.labels }}

Diff for: .github/workflows/industrial_ci.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
matrix:
2020
env:
2121
- { ROS_DISTRO: melodic, ROS_REPO: main}
22+
- { ROS_DISTRO: noetic, ROS_REPO: main}
2223
runs-on: ubuntu-latest
2324
steps:
2425
- uses: actions/checkout@v3

Diff for: README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on ROS environments.
1010
## Requirments
1111

1212
- ROS Melodic
13+
- ROS Noetic
1314

1415
### Optional
1516

@@ -22,7 +23,7 @@ on ROS environments.
2223
Please refer to [.docker/README.md](.docker/README.md) for details.
2324

2425
```sh
25-
docker pull ghcr.io/shotaak/pcl_tutorials_ros:melodic
26+
docker pull ghcr.io/shotaak/pcl_tutorials_ros:noetic
2627
```
2728

2829
## Source build
@@ -77,4 +78,7 @@ roslaunch pcl_tutorials_ros example.launch use_file:=true file:=pcl_logo.pcd
7778

7879
## License
7980

80-
MIT License
81+
This package is released under the MIT License.
82+
83+
The original source code of [kinect_ros](./models/kinect_ros/) is
84+
[osrf/gazebo_models (Creative Commons Attribution 3.0 Unported License)](https://github.com/osrf/gazebo_models).

Diff for: models/kinect_ros/model.sdf

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</clip>
3939
</camera>
4040

41-
<!-- Ref: http://gazebosim.org/tutorials/?tut=ros_depth_camera -->
41+
<!-- Ref: https://classic.gazebosim.org/tutorials?tut=ros_depth_camera&cat=connect_ros -->
4242
<plugin name="camera_plugin" filename="libgazebo_ros_openni_kinect.so">
4343
<baseline>0.2</baseline>
4444
<alwaysOn>true</alwaysOn>

Diff for: package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<buildtool_depend>catkin</buildtool_depend>
1212

1313
<depend>gazebo</depend>
14-
<depend>gazebo_ros</depend>
14+
<depend>gazebo_ros_pkgs</depend>
1515
<depend>pcl_conversions</depend>
1616
<depend>pcl_ros</depend>
1717
<depend>realsense2_camera</depend>

Diff for: worlds/table.world

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?xml version="1.0" ?>
22
<sdf version="1.6">
33
<world name="TableWorld">
4+
<scene>
5+
<shadows>0</shadows>
6+
</scene>
7+
48
<include>
59
<uri>model://sun</uri>
610
</include>

0 commit comments

Comments
 (0)