generated from Robotic-Decision-Making-Lab/ros-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
389 additions
and
6,508 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
ColumnLimit: 100 | ||
ColumnLimit: 120 | ||
MaxEmptyLinesToKeep: 1 | ||
|
||
IndentWidth: 2 | ||
|
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,4 @@ | ||
[codespell] | ||
# Uncomment and populate the following so that codespell ignores the specified words/files | ||
# skip = | ||
# ignore-words-list = |
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,29 +1,22 @@ | ||
FROM ghcr.io/robotic-decision-making-lab/underwater_docking:noetic-desktop | ||
FROM ghcr.io/robotic-decision-making-lab/underwater_docking:jazzy-desktop | ||
|
||
# Install ROS dependencies | ||
# This is done in a previous stage, but we include it again here in case anyone wants to | ||
# add new dependencies during development | ||
ENV USERNAME=ros | ||
ENV USERNAME=ubuntu | ||
ENV USER_WORKSPACE=/home/$USERNAME/ws_dock | ||
WORKDIR $USER_WORKSPACE | ||
|
||
COPY --chown=$USER_UID:$USER_GID . src/$PROJECT_NAME | ||
|
||
RUN ls src/$PROJECT_NAME | ||
|
||
RUN sudo apt-get -q update \ | ||
&& sudo apt-get -q -y upgrade \ | ||
&& rosdep update \ | ||
&& rosdep install -y --from-paths . --ignore-src -r --rosdistro ${ROS_DISTRO} \ | ||
&& rosdep install -y --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} --skip-keys="gz-transport12 gz-sim7 gz-math7 gz-msgs9 gz-plugin2" \ | ||
&& sudo apt-get autoremove -y \ | ||
&& sudo apt-get clean -y \ | ||
&& sudo rm -rf /var/lib/apt/lists/* | ||
|
||
# Install debugging/linting Python packages | ||
COPY --chown=$USER_UID:$USER_GID requirements-dev.txt . | ||
RUN python3 -m pip install -r requirements-dev.txt \ | ||
&& rm -rf requirements-dev.txt | ||
|
||
# Disable the setuputils installation warning | ||
# This prevents us from needing to pin the setuputils version (which doesn't always work) | ||
ENV PYTHONWARNINGS="ignore" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# Dockerfile for *-robot development container | ||
# | ||
ARG UNDERWATER_DOCKING_GITHUB_REPO=Robotic-Decision-Making-Lab/underwater_docking | ||
ARG ROS_DISTRO=rolling | ||
FROM ${UNDERWATER_DOCKING_GITHUB_REPO}:${ROS_DISTRO}-robot | ||
|
||
# Install ROS dependencies | ||
# This is done in a previous stage, but we include it again here in case anyone wants to | ||
# add new dependencies during development | ||
ENV USERNAME=ubuntu | ||
ENV USER_WORKSPACE=/home/$USERNAME/ws_dock | ||
WORKDIR $USER_WORKSPACE | ||
|
||
COPY --chown=$USER_UID:$USER_GID . src/underwater_docking | ||
RUN sudo apt-get -q update \ | ||
&& sudo apt-get -q -y upgrade \ | ||
&& rosdep update \ | ||
&& rosdep install -y --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} --skip-keys="gz-transport12 gz-sim7 gz-math7 gz-msgs9 gz-plugin2" \ | ||
&& sudo apt-get autoremove -y \ | ||
&& sudo apt-get clean -y \ | ||
&& sudo rm -rf /var/lib/apt/lists/* | ||
|
||
# Disable the setuputils installation warning | ||
# This prevents us from needing to pin the setuputils version (which doesn't always work) | ||
ENV PYTHONWARNINGS="ignore" |
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,45 @@ | ||
{ | ||
"name": "Robot Dev Container", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"context": "../..", | ||
"args": { | ||
"UNDERWATER_DOCKING_GITHUB_REPO": "ghcr.io/robotic-decision-making-lab/underwater_docking", | ||
"ROS_DISTRO": "rolling" | ||
} | ||
}, | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/home/ubuntu/ws_dock/src/underwater_docking,type=bind", | ||
"workspaceFolder": "/home/ubuntu/ws_dock/src/underwater_docking", | ||
"remoteUser": "ubuntu", | ||
"runArgs": [ | ||
"--network=host", | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt=seccomp:unconfined", | ||
"--security-opt=apparmor:unconfined", | ||
"--volume=/dev:/dev", | ||
"--privileged", | ||
"--volume=/run/user/1000:/run/user/1000" | ||
], | ||
"containerEnv": {}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"python.defaultInterpreterPath": "/home/ubuntu/.venv/underwater_docking/bin/python", | ||
"python.autoComplete.extraPaths": ["${workspaceFolder}/install/"], | ||
"python.analysis.extraPaths": ["${workspaceFolder}/install/"] | ||
}, | ||
"extensions": [ | ||
"ms-azuretools.vscode-docker", | ||
"ms-python.python", | ||
"njpwerner.autodocstring", | ||
"redhat.vscode-xml", | ||
"redhat.vscode-yaml", | ||
"smilerobotics.urdf", | ||
"esbenp.prettier-vscode", | ||
"charliermarsh.ruff", | ||
"josetr.cmake-language-support-vscode", | ||
"unifiedjs.vscode-mdx" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.