Skip to content

Commit b822994

Browse files
Merge remote-tracking branch 'origin/main' into simulation-enhancement
2 parents b729b45 + 409f790 commit b822994

File tree

77 files changed

+333
-456
lines changed

Some content is hidden

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

77 files changed

+333
-456
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "ROV Linux",
3-
"image": "ghcr.io/cwrubotix/rov-25:iron",
3+
"image": "ghcr.io/cwrubotix/rov-25:jazzy",
44
"containerEnv": {
55
"DISPLAY": "${localEnv:DISPLAY}"
66
},
@@ -12,13 +12,13 @@
1212
// gitconfig
1313
"type=bind,source=/home/${localEnv:USER}/.gitconfig,target=/home/rov/.gitconfig,readonly"
1414
],
15-
"workspaceFolder": "/home/rov/rov-25",
15+
"workspaceFolder": "/home/root/rov-25",
1616
"customizations": {
1717
"vscode" : {
1818
"extensions": ["ms-azuretools.vscode-docker",
19-
"streetsidesoftware.code-spell-checker", "ms-python.isort",
19+
"streetsidesoftware.code-spell-checker", "charliermarsh.ruff",
2020
"ms-python.mypy-type-checker"]
2121
}
2222
},
2323
"privileged": true
24-
}
24+
}

.devcontainer/linux_test_environment/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"source=/tmp/.X11-unix,target=/tmp/.X11-unix,type=bind,consistency=cached",
1212
"type=bind,source=/home/${localEnv:USER}/.gitconfig,target=/home/rov/.gitconfig,readonly"
1313
],
14-
"workspaceFolder": "/home/rov/rov-25",
14+
"workspaceFolder": "/home/root/rov-25",
1515
"customizations": {
1616
"vscode": {
1717
"extensions": [
1818
"ms-azuretools.vscode-docker",
1919
"streetsidesoftware.code-spell-checker",
20-
"ms-python.python",
20+
"charliermarsh.ruff",
2121
"ms-python.mypy-type-checker"
2222
]
2323
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"name" : "ROV macOS",
3-
"image": "ghcr.io/cwrubotix/rov-25:iron",
3+
"image": "ghcr.io/cwrubotix/rov-25:jazzy",
44
"containerEnv": {
55
"DISPLAY": "unix:0"
66
},
77
"mounts": [
88
"type=bind,source=/Users/${localEnv:USER}/.ssh,target=/home/rov/.ssh,readonly",
99
],
10-
"workspaceFolder": "/home/rov/rov-25",
10+
"workspaceFolder": "/home/root/rov-25",
1111
"customizations": {
1212
"vscode" : {
1313
"extensions": ["ms-azuretools.vscode-docker",
14-
"streetsidesoftware.code-spell-checker", "ms-python.isort",
14+
"streetsidesoftware.code-spell-checker", "charliermarsh.ruff",
1515
"ms-python.mypy-type-checker"]
1616
}
1717
},
1818
"privileged": true
19-
}
19+
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name" : "ROV Windows",
3-
"image": "ghcr.io/cwrubotix/rov-25:iron",
3+
"image": "ghcr.io/cwrubotix/rov-25:jazzy",
44
"containerEnv": {
55
"DISPLAY": "${localEnv:DISPLAY}"
66
},
7-
"workspaceFolder": "/home/rov/rov-25",
7+
"workspaceFolder": "/home/root/rov-25",
88
"customizations": {
99
"vscode" : {
1010
"extensions": ["ms-azuretools.vscode-docker",
11-
"streetsidesoftware.code-spell-checker", "ms-python.isort",
11+
"streetsidesoftware.code-spell-checker", "charliermarsh.ruff",
1212
"ms-python.mypy-type-checker"]
1313
}
1414
},
1515
"privileged": true
16-
}
16+
}

.github/workflows/docker.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Create and publish a Docker image
33
on:
44
push:
55
branches: ['main']
6+
workflow_dispatch: # allow manually starting this workflow
67
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
78
env:
89
REGISTRY: ghcr.io
@@ -18,12 +19,6 @@ jobs:
1819
steps:
1920
- name: Checkout repository
2021
uses: actions/checkout@v4
21-
with:
22-
# Clone submodules as well
23-
submodules: 'true'
24-
# Follow this https://stackoverflow.com/questions/60222741/github-actions-and-git-clone-issue
25-
# For help setting up in the future
26-
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
2722
# Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
2823
- name: Log in to the Container registry
2924
uses: docker/login-action@v3
@@ -39,7 +34,7 @@ jobs:
3934
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4035
tags: |
4136
# set latest tag for main branch
42-
type=raw,value=iron
37+
type=raw,value=jazzy
4338
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
4439
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
4540
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.

.github/workflows/industrial_ci_action.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false # uncomment if failing jobs should not cancel the others immediately
1919
matrix: # matrix is the product of entries
20-
ROS_DISTRO: [iron, jazzy]
20+
ROS_DISTRO: [jazzy]
2121
ROS_REPO: [main]
2222
# exclude: # specific configuration can be excludes
2323
# - {ROS_DISTRO: melodic, ROS_REPO: testing}
@@ -36,30 +36,10 @@ jobs:
3636
key: ccache-${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-${{github.run_id}}
3737
restore-keys: |
3838
ccache-${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-
39-
- uses: 'ros-industrial/industrial_ci@master' # run industrial_ci
40-
# Only pulls docker for iron since jazzy one is not built yet
41-
if: matrix.ROS_DISTRO == 'iron'
42-
env: # either pass all entries explicitly
43-
DOCKER_IMAGE: ghcr.io/cwrubotix/rov-25:${{matrix.ROS_DISTRO}}
44-
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
45-
# Done to avoid permssion errors in the ros-industrial ci.
46-
DOCKER_RUN_OPTS: -u root
47-
ROS_REPO: ${{ matrix.ROS_REPO }}
48-
# Crazy one liner for install python dependencies
49-
50-
# Need since mypy < 0.981 does not work with type stubs.
51-
# Ubuntu 24 has 1.9 so should be fine when we upgrade
52-
AFTER_INSTALL_TARGET_DEPENDENCIES_EMBED: 'pip install --upgrade pip && pip install /root/target_ws/src/rov-25 --user && pip install "mypy>=1.7" --user && rm -r /root/target_ws/src/rov-25/build'
5339
# Once a :jazzy exists we can remove this section
5440
- uses: 'ros-industrial/industrial_ci@master' # run industrial_ci
55-
if: matrix.ROS_DISTRO != 'iron'
5641
env: # either pass all entries explicitly
57-
# DOCKER_IMAGE: ghcr.io/cwrubotix/rov-25:${{matrix.ROS_DISTRO}}
42+
DOCKER_IMAGE: ghcr.io/cwrubotix/rov-25:${{matrix.ROS_DISTRO}}
5843
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
59-
# Done to avoid permssion errors in the ros-industrial ci.
60-
# DOCKER_RUN_OPTS: -u root
6144
ROS_REPO: ${{ matrix.ROS_REPO }}
62-
# Add to python3-pyqt6.multimedia rosdep
63-
ADDITIONAL_DEBS: 'python3-pyqt6.qtmultimedia'
64-
# Crazy one liner for install python dependencies
65-
AFTER_INSTALL_TARGET_DEPENDENCIES_EMBED: 'pip install /root/target_ws/src/rov-25 --user --break-system-packages && rm -r /root/target_ws/src/rov-25/build'
45+
BEFORE_INSTALL_TARGET_DEPENDENCIES_EMBED: './.vscode/install_dependencies.sh'

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
44
# Ruff version.
5-
rev: v0.5.4
5+
rev: v0.6.4
66
hooks:
77
# Run the linter.
88
- id: ruff
@@ -21,6 +21,6 @@ repos:
2121
hooks:
2222
- id: trailing-whitespace
2323
- repo: https://github.com/google/yamlfmt
24-
rev: v0.10.0
24+
rev: v0.13.0
2525
hooks:
2626
- id: yamlfmt

.vscode/install_dependencies.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
#!/bin/bash
22

33
# Update ROS dependencies
4-
. /opt/ros/iron/setup.sh && rosdep update
4+
. /opt/ros/jazzy/setup.sh && rosdep update
55
sudo apt-get update -y
66

77
# Installs ROS dependencies
8-
. /opt/ros/iron/setup.sh && rosdep install --from-paths src --ignore-src -r -y
8+
. /opt/ros/jazzy/setup.sh && export PIP_BREAK_SYSTEM_PACKAGES=1 && rosdep install --from-paths src --ignore-src -r -y
99

1010
# Deletes ROS build directories
1111
rm -rf build install log
12-
13-
# Install python dependencies
14-
pip install .
15-
16-
# Install some random package that PyQt requires
17-
sudo apt-get install libxcb-cursor0 -y

.vscode/pi_setup.sh

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ sudo apt-get install ros-dev-tools -y
2525
sudo apt-get install python3-pip -y
2626

2727
# Install ROS2
28-
sudo apt-get install ros-iron-ros-base -y
28+
sudo apt-get install ros-jazzy-ros-base -y
2929
sudo apt-get upgrade -y
3030

3131
# Add setup.bash to .bashrc only if it isn't already there
32-
ROS_LINE='source /opt/ros/iron/setup.bash'
32+
ROS_LINE='source /opt/ros/jazzy/setup.bash'
3333
if ! grep -qF "$ROS_LINE" ~/.bashrc ;
3434
then echo "$ROS_LINE" >> ~/.bashrc ;
3535
fi
@@ -50,12 +50,7 @@ source ~/.bashrc
5050

5151
# Install only Pi dependencies
5252
# Installs ROS dependencies
53-
source /opt/ros/iron/setup.sh && rosdep install --from-paths src/pi --ignore-src -r -y
54-
55-
# Crazy one liner for install python dependencies
56-
for d in src/pi/*/; do sudo pip install -e "$d"; done
57-
# Delete generated files
58-
sudo rm -rf $(find . | grep .egg-info)
53+
source /opt/ros/jazzy/setup.sh && export PIP_BREAK_SYSTEM_PACKAGES=1 && rosdep install --from-paths src/pi --ignore-src -r -y
5954

6055
# Add setup.bash to .bashrc
61-
source "$(pwd)/.vscode/rov_setup.sh"
56+
source "$(pwd)/.vscode/rov_setup.sh"

.vscode/ros2_install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ sudo apt-get update
2727
sudo apt-get upgrade -y
2828

2929
# Install ROS2
30-
sudo apt-get install ros-iron-desktop -y
30+
sudo apt-get install ros-jazzy-desktop -y
3131
sudo apt-get upgrade -y
3232

3333
# Add setup.bash to .bashrc only if it isn't already there
34-
ROS_LINE='source /opt/ros/iron/setup.bash'
34+
ROS_LINE='source /opt/ros/jazzy/setup.bash'
3535
if ! grep -qF "$ROS_LINE" ~/.bashrc ;
3636
then echo "$ROS_LINE" >> ~/.bashrc ;
3737
fi
@@ -48,4 +48,4 @@ source ~/.bashrc
4848
# Start rosdep
4949
sudo rosdep init
5050
rosdep update
51-
source ~/.bashrc
51+
source ~/.bashrc

0 commit comments

Comments
 (0)