-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into qhdwight/2024
- Loading branch information
Showing
77 changed files
with
2,317 additions
and
542 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
ci: | ||
name: CI | ||
runs-on: ubuntu-latest | ||
container: | ||
image: umrover1/ros:latest | ||
options: --user root | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: "true" | ||
# This makes sure that $GITHUB_WORKSPACE is the catkin workspace path | ||
path: "src/mrover" | ||
- name: Ensure Python Requirements | ||
run: . /home/mrover/catkin_ws/src/mrover/venv/bin/activate && pip install -e "$GITHUB_WORKSPACE/src/mrover[dev]" | ||
- name: Style Check | ||
run: . /home/mrover/catkin_ws/src/mrover/venv/bin/activate && cd $GITHUB_WORKSPACE/src/mrover/ && ./style.sh | ||
- name: Update ROS APT | ||
if: github.event.pull_request.draft == false | ||
run: runuser -u mrover -- rosdep update | ||
- name: Ensure ROS APT Requirements | ||
if: github.event.pull_request.draft == false | ||
run: runuser -u mrover -- rosdep install --from-paths "$GITHUB_WORKSPACE/src" --ignore-src -r -y --rosdistro noetic | ||
- name: Copy Catkin Profiles | ||
if: github.event.pull_request.draft == false | ||
run: rsync -r $GITHUB_WORKSPACE/src/mrover/ansible/roles/build/files/profiles $GITHUB_WORKSPACE/.catkin_tools | ||
- name: Initialize | ||
if: github.event.pull_request.draft == false | ||
run: . /opt/ros/noetic/setup.sh && catkin init && catkin profile set ci | ||
- name: Build | ||
if: github.event.pull_request.draft == false | ||
run: . /opt/ros/noetic/setup.sh && . /home/mrover/catkin_ws/src/mrover/venv/bin/activate && catkin build | ||
- name: Test | ||
if: github.event.pull_request.draft == false | ||
run: . /opt/ros/noetic/setup.sh && . /home/mrover/catkin_ws/src/mrover/venv/bin/activate && . $GITHUB_WORKSPACE/devel/setup.sh && catkin test -j1 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
venv |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
FROM ros:noetic | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
# Add apt repo for latest version of Git | ||
RUN apt-get install software-properties-common -y && add-apt-repository ppa:git-core/ppa -y | ||
RUN apt-get update && apt-get install -y \ | ||
zsh neovim sudo git git-lfs \ | ||
clang-format-12 clang-tidy-12 \ | ||
python3-catkin-tools python3-pip | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install keyboard-configuration -y | ||
# DEBIAN_FRONTEND=noninteractive and keyboard-configuration are needed to prevent stdin prompting later on | ||
# This was super annoying to figure out because otherwise the build would hang | ||
# software-properties-common is needed for apt-add-repository | ||
RUN apt-get update -y && apt-get upgrade -y && DEBIAN_FRONTEND=noninteractive apt-get install software-properties-common keyboard-configuration -y | ||
RUN apt-add-repository ppa:ansible/ansible -y | ||
RUN apt-add-repository ppa:git-core/ppa -y | ||
RUN apt-get install -y ansible git git-lfs | ||
|
||
RUN useradd --create-home --groups sudo --shell /bin/zsh mrover | ||
# Give mrover user sudo access with no password | ||
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
USER mrover | ||
RUN mkdir -p ~/catkin_ws/src/mrover | ||
RUN mkdir -p /home/mrover/catkin_ws/src/mrover | ||
WORKDIR /home/mrover/catkin_ws/src/mrover | ||
# ROS package manager (rosdep) reads this file to install dependencies | ||
# Defines the APT packages that need to be installed | ||
# rosdep is called from Ansible to install them | ||
ADD ./package.xml . | ||
# Python package manager (pip) reads this file to install dependencies | ||
ADD ./requirements.txt . | ||
# Install ROS packages | ||
RUN rosdep update && rosdep install --from-paths . --ignore-src -y --rosdistro=noetic | ||
# Defines the Python packages that need to be installed | ||
# pip is called from Ansible to install them | ||
ADD ./pyproject.toml . | ||
# Copy over all Ansible files | ||
ADD ./ansible ./ansible | ||
ADD ./ansible.sh . | ||
RUN ./ansible.sh build.yml | ||
|
||
USER root | ||
# Remove apt cache to free up space in the image | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
# Install Python packags, sudo so it is a global install | ||
RUN pip3 install -r ./requirements.txt | ||
|
||
USER mrover | ||
ENTRYPOINT [ "/bin/zsh" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- hosts: all | ||
vars: | ||
ros_distro: noetic | ||
ubuntu_release: focal | ||
roles: | ||
- build |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
ros_distro: noetic | ||
ubuntu_release: focal | ||
roles: | ||
- build | ||
- dev |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
authors: [ ] | ||
blacklist: [ ] | ||
build_space: build | ||
catkin_make_args: [ ] | ||
cmake_args: | ||
- -DCMAKE_BUILD_TYPE=Release | ||
- -DCMAKE_CXX_FLAGS=-pipe | ||
- -DCMAKE_C_COMPILER=clang-16 | ||
- -DCMAKE_CXX_COMPILER=clang++-16 | ||
- -DCMAKE_CXX_CLANG_TIDY=clang-tidy-16 | ||
devel_layout: linked | ||
devel_space: devel | ||
extend_path: null | ||
extends: null | ||
install: false | ||
install_space: install | ||
isolate_install: false | ||
jobs_args: [ ] | ||
licenses: | ||
- TODO | ||
log_space: logs | ||
maintainers: [ ] | ||
make_args: [ ] | ||
source_space: src | ||
use_env_cache: false | ||
use_internal_make_jobserver: true | ||
whitelist: [ ] |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
authors: [ ] | ||
blacklist: [ ] | ||
build_space: build | ||
catkin_make_args: [ ] | ||
cmake_args: | ||
- -DCMAKE_BUILD_TYPE=Debug | ||
- -DCMAKE_CXX_FLAGS=-pipe | ||
- -DCMAKE_C_COMPILER=clang-16 | ||
- -DCMAKE_CXX_COMPILER=clang++-16 | ||
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache | ||
- -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache | ||
devel_layout: linked | ||
devel_space: devel | ||
extend_path: null | ||
extends: null | ||
install: false | ||
install_space: install | ||
isolate_install: false | ||
jobs_args: [ ] | ||
licenses: | ||
- TODO | ||
log_space: logs | ||
maintainers: [ ] | ||
make_args: [ ] | ||
source_space: src | ||
use_env_cache: false | ||
use_internal_make_jobserver: true | ||
whitelist: [ ] |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
active: debug |
Oops, something went wrong.