Skip to content

Commit 4ce99cb

Browse files
authored
Migrate to jazzy. (#200)
- Switch to Jazzy base image - Install Franka Jazzy fork. - Update Panther to 2.3.1 (jazzy) - Stop building Gazebo and Moveit from source, since Jazzy brings them to newer versions already. - Move all packages to core packages, keep empty dev_packages for future. - Remove old install scripts - Update Xacros. - Update IGN -> GZ for new Gazebo. --------- Signed-off-by: Jelmer de Wolde <[email protected]>
1 parent 9fc18b8 commit 4ce99cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+517
-603
lines changed

.devcontainer/.env

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
# Define IGN_IP to use Gazebo with firewall enabled:
6-
IGN_IP=127.0.0.1
5+
# Define GZ_IP to use Gazebo with firewall enabled:
6+
GZ_IP=127.0.0.1
7+
8+
# Define GZ_SIM_RESOURCE_PATH to enable Gazebo to find resources:
9+
GZ_SIM_RESOURCE_PATH="/opt/ros/jazzy/share:/home/rcdt/franka_ws/src"
710

811
# Set QT_API to pyside6 for PyFlow to work:
912
QT_API=pyside6
1013

14+
# Cache the pre_commit:
1115
PRE_COMMIT_HOME=/home/rcdt/rcdt_robotics/.cache/pre-commit
1216

1317
# Set the RMW implementation to Cyclone DDS for communication with the Panther:
14-
RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
18+
RMW_IMPLEMENTATION=rmw_cyclonedds_cpp

.devcontainer/docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ services:
1313
tty: true
1414
env_file:
1515
- .env
16-
group_add:
17-
- "106"
1816
volumes:
1917
- "/tmp/.X11-unix:/tmp/.X11-unix"
2018
- "${HOME}/.vscode-server:/home/rcdt/.vscode-server"

.github/workflows/reusable-workspace.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ jobs:
4343
cd ros2_ws
4444
source install/setup.bash
4545
echo "GZ_SIM_RESOURCE_PATH: ${GZ_SIM_RESOURCE_PATH}"
46-
uv run pytest src/
46+
uv run pytest --ignore=src/rcdt_franka/rcdt_franka/test/integration/test_franka_realsense.py src/
47+
48+
# Ignore src/rcdt_franka/rcdt_franka/test/integration/test_franka_realsense.py due to gpu limitation in CICD.

dockerfiles/general/pre_install.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
#Pull the base image:
6-
FROM osrf/ros:humble-desktop
6+
FROM osrf/ros:jazzy-desktop
77
ARG COLCON_BUILD_SEQUENTIAL
88
ENV UNAME=rcdt
99
ENV UID=1000
@@ -21,4 +21,4 @@ RUN apt update
2121
# Create bashrc file:
2222
RUN echo "if test -f ~/.personal.bashrc; then\nsource ~/.personal.bashrc\nfi" >> /home/$UNAME/.bashrc
2323
RUN echo "if test -f ~/.env; then\nset -a && source ~/.env && set +a\nfi" >> /home/$UNAME/.bashrc
24-
RUN echo "source /opt/ros/humble/setup.bash" >> /home/$UNAME/.bashrc
24+
RUN echo "source /opt/ros/jazzy/setup.bash" >> /home/$UNAME/.bashrc

dockerfiles/install_scripts/core_packages.sh

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,37 @@
55
# SPDX-License-Identifier: Apache-2.0
66

77
set -e
8-
8+
source /home/$UNAME/.bashrc
99
apt update
10+
11+
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
1012
apt install -y \
11-
ros-humble-ament-cmake-clang-format \
12-
ros-humble-ros2-controllers \
13-
ros-humble-ros2-control \
14-
ros-humble-ros2-control-test-assets \
15-
ros-humble-controller-manager \
16-
ros-humble-control-msgs \
17-
ros-humble-control-toolbox \
18-
ros-humble-xacro \
19-
ros-humble-rqt-tf-tree \
20-
ros-humble-rmw-cyclonedds-cpp \
13+
flake8 \
14+
git-lfs \
2115
htop \
22-
python3-pip \
23-
git-lfs
16+
nano \
17+
python3-pip
18+
19+
apt install -y \
20+
ros-$ROS_DISTRO-launch-pytest \
21+
ros-$ROS_DISTRO-moveit \
22+
ros-$ROS_DISTRO-moveit-servo \
23+
ros-$ROS_DISTRO-moveit-visual-tools \
24+
ros-$ROS_DISTRO-navigation2 \
25+
ros-$ROS_DISTRO-nav2-bringup \
26+
ros-$ROS_DISTRO-plotjuggler-ros \
27+
ros-$ROS_DISTRO-realsense2-camera \
28+
ros-$ROS_DISTRO-realsense2-description \
29+
ros-$ROS_DISTRO-rmw-cyclonedds-cpp \
30+
ros-$ROS_DISTRO-ros-gz \
31+
ros-$ROS_DISTRO-ros2-controllers \
32+
ros-$ROS_DISTRO-slam-toolbox \
33+
ros-$ROS_DISTRO-velodyne-description
34+
35+
pip install uv --break-system-packages
36+
37+
echo "export PYTHONPATH=\"/home/$UNAME/rcdt_robotics/.venv/lib/python3.12/site-packages:\$PYTHONPATH\"" \
38+
>> /home/$UNAME/.bashrc
39+
40+
echo "export PATH=\"/home/$UNAME/rcdt_robotics/.venv/bin:\$PATH\"" \
41+
>> /home/$UNAME/.bashrc

dockerfiles/install_scripts/dev_packages.sh

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,6 @@
55
# SPDX-License-Identifier: Apache-2.0
66

77
set -e
8-
9-
sudo apt update
10-
sudo apt install -y \
11-
flake8 \
12-
ros-humble-navigation2 \
13-
ros-humble-nav2-bringup \
14-
ros-humble-slam-toolbox
15-
16-
pip install uv
17-
18-
echo "export PYTHONPATH=\"/home/$UNAME/rcdt_robotics/.venv/lib/python3.10/site-packages:\$PYTHONPATH\"" \
19-
>> /home/$UNAME/.bashrc
20-
21-
echo "export PATH=\"/home/$UNAME/rcdt_robotics/.venv/bin:\$PATH\"" \
22-
>> /home/$UNAME/.bashrc
8+
source /home/$UNAME/.bashrc
9+
apt update
2310

dockerfiles/install_scripts/franka_lock_unlock.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
set -e
8+
source /home/$UNAME/.bashrc
9+
apt update
10+
711
mkdir -p /home/$UNAME/franka_lock_unlock/src
812
cd /home/$UNAME/franka_lock_unlock
913
git clone https://github.com/alliander-opensource/franka_lock_unlock.git
1014

11-
rosdep update
12-
rosdep install --from-paths src --rosdistro humble -y -i
15+
rosdep update --rosdistro $ROS_DISTRO
16+
rosdep install --from-paths src -y -i
1317

14-
source /home/$UNAME/.bashrc
1518
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
1619
echo "source /home/$UNAME/franka_lock_unlock/install/setup.bash" >>/home/$UNAME/.bashrc

dockerfiles/install_scripts/franka_ros2.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@
55
# SPDX-License-Identifier: Apache-2.0
66

77
set -e
8+
source /home/$UNAME/.bashrc
9+
apt update
810

9-
#Install ros2 franka: https://github.com/frankaemika/franka_ros2/tree/v1.0.2
11+
#Install ros2 franka: https://github.com/frankaemika/franka_ros2
1012
apt update
11-
source /home/$UNAME/.bashrc
1213
mkdir -p /home/$UNAME/franka_ws/src
1314
cd /home/$UNAME/franka_ws
14-
git clone -b v1.0.2 https://github.com/frankaemika/franka_ros2.git src
15-
vcs import src < src/franka.repos --recursive --skip-existing
16-
rosdep install --from-paths src --ignore-src --rosdistro humble -y
17-
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-ignore franka_ign_ros2_control
15+
16+
# Clone a fork with jazzy support, since Franka offers no support yet:
17+
git clone -b jazzy https://github.com/WHongLin/franka_ros2.git src/franka_ros2
18+
vcs import src --recursive --skip-existing <src/franka_ros2/franka.repos
19+
20+
rosdep update --rosdistro $ROS_DISTRO
21+
rosdep install --from-paths src -y -i
22+
23+
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
1824
echo "source /home/$UNAME/franka_ws/install/setup.bash" >>/home/$UNAME/.bashrc

dockerfiles/install_scripts/gazebo.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

dockerfiles/install_scripts/husarion_ugv_ros.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,19 @@
55
# SPDX-License-Identifier: Apache-2.0
66

77
set -e
8+
source /home/$UNAME/.bashrc
89
apt update
910

1011
#Install husarion_ugv_ros: https://github.com/husarion/husarion_ugv_ros
1112
cd /home/$UNAME
1213
mkdir husarion_ws
1314
cd /home/$UNAME/husarion_ws
14-
git clone -b 2.2.2 https://github.com/husarion/husarion_ugv_ros.git src/husarion_ugv_ros
15-
15+
git clone -b 2.3.1 https://github.com/husarion/husarion_ugv_ros.git src/husarion_ugv_ros
1616
export HUSARION_ROS_BUILD_TYPE=simulation
17-
1817
vcs import src < src/husarion_ugv_ros/husarion_ugv/${HUSARION_ROS_BUILD_TYPE}_deps.repos
1918

2019
rosdep update --rosdistro $ROS_DISTRO
2120
rosdep install --from-paths src -y -i
2221

23-
source /home/$UNAME/.bashrc
24-
2522
colcon build --symlink-install --packages-up-to husarion_ugv --cmake-args -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
26-
2723
echo "source /home/$UNAME/husarion_ws/install/setup.bash" >>/home/$UNAME/.bashrc

0 commit comments

Comments
 (0)