forked from epfl-lasa/modulo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 3.1.0 is a minor update to modulo with a new feature in the components and it marks the first official version that uses iron as its ROS2 distribution.
- Loading branch information
Showing
29 changed files
with
253 additions
and
214 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "modulo", | ||
"remoteUser": "ros2", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"context": "..", | ||
"target": "development", | ||
"args": { "CL_VERSION": "v7.2.0" } | ||
}, | ||
"workspaceMount": "source=${localWorkspaceFolder},target=/home/ros2/.devcontainer,type=bind,consistency=cached", | ||
"workspaceFolder": "/home/ros2/.devcontainer", | ||
"mounts": [ | ||
"source=${localWorkspaceFolder}/source,target=/home/ros2/ws/src,type=bind,consistency=cached" | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.cpptools-extension-pack", | ||
"eamodio.gitlens" | ||
] | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
.idea | ||
cmake-build-* | ||
./fileList.txt | ||
build | ||
|
||
doxygen/docs/html |
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,20 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "AMD", | ||
"includePath": [ | ||
"/opt/ros/humble/include/**", | ||
"/home/ros2/ros2_ws/install/**", | ||
"/home/ros2/ws/install/**", | ||
"/home/ros2/ws/src/modulo_utils/include", | ||
"/home/ros2/ws/src/modulo_core/include", | ||
"/home/ros2/ws/src/modulo_components/include" | ||
], | ||
"compilerPath": "/usr/bin/gcc", | ||
"cStandard": "c17", | ||
"cppStandard": "gnu++17", | ||
"intelliSenseMode": "linux-gcc-x64" | ||
} | ||
], | ||
"version": 4 | ||
} |
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 @@ | ||
{ | ||
"C_Cpp.clang_format_style": "file:/home/ros2/.clang-format", | ||
"cmake.sourceDirectory": "/home/ros2/ws/src/modulo_components", | ||
} |
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 |
---|---|---|
@@ -1,25 +1,56 @@ | ||
ARG BASE_TAG=humble | ||
FROM ghcr.io/aica-technology/ros2-control-libraries:${BASE_TAG} as dependencies | ||
WORKDIR ${HOME}/ros2_ws | ||
|
||
|
||
FROM dependencies as modulo-component-interfaces | ||
|
||
COPY --chown=${USER} ./source/modulo_component_interfaces ./src/modulo_component_interfaces | ||
COPY --chown=${USER} ./source/modulo_utils ./src/modulo_utils | ||
RUN /bin/bash -c "source /opt/ros/$ROS_DISTRO/setup.bash; colcon build" | ||
|
||
|
||
FROM modulo-component-interfaces as modulo-core | ||
|
||
COPY --chown=${USER} ./source/modulo_core ./src/modulo_core | ||
RUN /bin/bash -c "source /opt/ros/$ROS_DISTRO/setup.bash; colcon build --packages-select modulo_core" | ||
|
||
|
||
FROM modulo-core as modulo-components | ||
|
||
COPY --chown=${USER} ./source/modulo_components ./src/modulo_components | ||
RUN /bin/bash -c "source /opt/ros/$ROS_DISTRO/setup.bash; colcon build --packages-select modulo_components" | ||
|
||
# clean image | ||
RUN sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/* | ||
#syntax=docker/dockerfile:1.4.0 | ||
ARG CL_VERSION=v7.2.0 | ||
ARG ROS2_VERSION=iron | ||
FROM ghcr.io/aica-technology/control-libraries:${CL_VERSION} as cl | ||
FROM ghcr.io/aica-technology/ros2-ws:${ROS2_VERSION} as base | ||
# setup the environment | ||
USER ${USER} | ||
ENV WORKSPACE ${HOME}/ws | ||
WORKDIR ${WORKSPACE} | ||
SHELL ["/bin/bash", "-l", "-c"] | ||
|
||
# create a workspace | ||
RUN source ${HOME}/ros2_ws/install/setup.bash && colcon build | ||
# source the new workspace on login | ||
RUN echo "source ${WORKSPACE}/install/setup.bash" | cat - ${HOME}/.bashrc > tmp && mv tmp ${HOME}/.bashrc | ||
# install deps | ||
COPY --from=cl / / | ||
# install sources | ||
COPY --chown=${USER}:${USER} ./source ${WORKSPACE}/src | ||
|
||
FROM base as utils-development | ||
ARG TARGETPLATFORM | ||
ARG CACHEID | ||
RUN --mount=type=cache,target=./build,id=${TARGETPLATFORM}-${CACHEID},uid=1000 \ | ||
colcon build --packages-select modulo_component_interfaces | ||
|
||
FROM utils-development as core-development | ||
ARG TARGETPLATFORM | ||
ARG CACHEID | ||
RUN --mount=type=cache,target=./build,id=${TARGETPLATFORM}-${CACHEID},uid=1000 \ | ||
colcon build --packages-select modulo_utils | ||
|
||
FROM core-development as development | ||
ARG TARGETPLATFORM | ||
ARG CACHEID | ||
RUN --mount=type=cache,target=./build,id=${TARGETPLATFORM}-${CACHEID},uid=1000 \ | ||
colcon build --packages-select modulo_core | ||
|
||
FROM base as build | ||
ARG TARGETPLATFORM | ||
ARG CACHEID | ||
RUN --mount=type=cache,target=./build,id=${TARGETPLATFORM}-${CACHEID},uid=1000 \ | ||
sudo apt-get update && rosdep update \ | ||
&& rosdep install --from-paths src --ignore-src -r -y \ | ||
--skip-keys "ros2_control ros2_controllers controller_interface hardware_interface controller_manager" \ | ||
&& sudo rm -rf /var/lib/apt/lists/* \ | ||
&& colcon build | ||
|
||
FROM build as test | ||
ARG TARGETPLATFORM | ||
ARG CACHEID | ||
RUN --mount=type=cache,target=./build,id=${TARGETPLATFORM}-${CACHEID},uid=1000 \ | ||
colcon test && colcon test-result --verbose | ||
|
||
FROM scratch as production | ||
COPY --from=build /home/ros2/ws/install /colcon |
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 |
---|---|---|
@@ -1 +1 @@ | ||
3.0.0 | ||
3.1.0 |
Oops, something went wrong.