-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update superbuild base, withuser and robometry images to check fix on superbuidl with robometry compilation Add superbuild-gazebo to stale images. It needs to be revised.
- Loading branch information
Showing
22 changed files
with
314 additions
and
225 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
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,71 @@ | ||
#here add all stuff necessary to run redball demo in gazebo | ||
#start from image passed by argument during build process. | ||
ARG START_IMG="none" | ||
ARG METADATA_FILE="/usr/local/bin/setup_metadata.sh" | ||
ARG PROJECTS_DIR=/projects | ||
ARG ROS2_WORKSPACE=ros2_ws | ||
|
||
FROM $START_IMG as builder | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
LABEL maintainer="[email protected], [email protected]" | ||
|
||
# Args used as env variables always goes after FROM otherwise they are overridden | ||
ARG PROJECTS_DIR | ||
ARG ROS2_WORKSPACE | ||
|
||
ARG CMAKE_EXTRA_OPTIONS=-j4 | ||
|
||
#The EXPOSE instruction does not actually publish the port. | ||
#It functions as a type of documentation between the person who builds the image and the person who runs the container, about which ports are intended to be published. | ||
#To actually publish the port when running the container, use the -p flag on docker run to publish and map one or more ports, or the -P flag to publish all exposed ports and map them to high-order ports. | ||
EXPOSE 10000/tcp 10000/udp | ||
|
||
# Some QT-Apps don't show controls without this | ||
ENV QT_X11_NO_MITSHM 1 | ||
ENV YARP_COLORED_OUTPUT=1 | ||
|
||
WORKDIR / | ||
|
||
# Install gazebo | ||
RUN apt update && apt install -y \ | ||
gazebo | ||
|
||
RUN apt update && apt install -y \ | ||
ros-humble-gazebo-msgs \ | ||
ros-humble-gazebo-ros \ | ||
ros-humble-moveit \ | ||
ros-humble-moveit-visual-tools \ | ||
ros-humble-ros2-controllers \ | ||
ros-humble-moveit-ros-planning-interface | ||
|
||
RUN echo 'export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp' >> /usr/local/bin/setup_robotology_tdd.sh | ||
|
||
# Install nlop (non-linear optimization needed for building trac_ik) | ||
RUN bash -c "mkdir -p ${PROJECTS_DIR} && cd ${PROJECTS_DIR} &&\ | ||
git clone https://github.com/stevengj/nlopt.git &&\ | ||
cd nlopt &&\ | ||
mkdir build &&\ | ||
cd build &&\ | ||
cmake .. &&\ | ||
make &&\ | ||
make install" | ||
|
||
RUN bash -c "mkdir -p ${PROJECTS_DIR}/${ROS2_WORKSPACE}/src && cd ${PROJECTS_DIR}/${ROS2_WORKSPACE}/src &&\ | ||
source /opt/ros/humble/setup.bash &&\ | ||
git clone https://bitbucket.org/traclabs/trac_ik.git -b rolling-devel &&\ | ||
cd trac_ik &&\ | ||
colcon build &&\ | ||
source install/setup.bash" | ||
|
||
RUN bash -c "cd ${PROJECTS_DIR}/${ROS2_WORKSPACE}/src &&\ | ||
source /opt/ros/humble/setup.bash &&\ | ||
git clone https://github.com/icub-tech-iit/xcub-moveit2 &&\ | ||
cd .. &&\ | ||
colcon build &&\ | ||
source install/setup.bash" | ||
|
||
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ] | ||
CMD ["bash"] | ||
|
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,9 @@ | ||
[sources] | ||
START_IMG={{env.REGISTRY}}/{{env.REPOSITORY_NAME}}/{{env.IMAGE_PREFIX}}superbuild-ros2:{{steps.get_version.outputs.VERSION}}{{steps.get_version.outputs.TAG}}_sources | ||
metadata={{steps.get_date.outputs.DATE_HOUR}} | ||
release={{steps.get_version.outputs.VERSION}} | ||
sbtag={{matrix.tag}} | ||
|
||
[tag] | ||
{{matrix.apps}}:{{steps.get_version.outputs.VERSION}}{{steps.get_version.outputs.TAG}} | ||
|
File renamed without changes.
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 |
---|---|---|
|
@@ -25,4 +25,4 @@ ENV YARP_ROBOT_NAME="iCubGazeboV2_5" | |
ENV QT_X11_NO_MITSHM=1 | ||
ENV YARP_COLORED_OUTPUT=1 | ||
|
||
CMD ["bash"] | ||
CMD ["bash"] |
8 changes: 4 additions & 4 deletions
8
...es/basic/superbuild-gazebo/conf_build.ini → ...d_images/superbuild-gazebo/conf_build.ini
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,15 +1,15 @@ | ||
[sources] | ||
START_IMG=ubuntu:focal | ||
$(cat DATE_TAG) | ||
START_IMG=ubuntu:jammy | ||
metadata={{steps.get_date.outputs.DATE_HOUR}} | ||
release={{steps.get_version.outputs.VERSION}} | ||
sbtag={{matrix.tag}} | ||
|
||
[binaries] | ||
SOURCE_IMG={{env.DEFAULT_USER}}/{{matrix.apps}}:{{steps.get_version.outputs.VERSION}}{{steps.get_version.outputs.TAG}}_sources | ||
START_IMG=ubuntu:focal | ||
START_IMG=ubuntu:jammy | ||
|
||
[tag] | ||
{{matrix.apps}}:{{steps.get_version.outputs.VERSION}}{{steps.get_version.outputs.TAG}} | ||
|
||
|
||
[superbuild] | ||
[superbuild] |
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,15 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ -z "$(which setup_robotology_tdd.sh)" ] ; then | ||
echo "File setup_robotology_tdd.sh not found." | ||
exit 1 | ||
fi | ||
|
||
source setup_robotology_tdd.sh | ||
|
||
echo "[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion" >> /root/.bashrc | ||
echo "[ -r /usr/local/bin/setup_robotology_tdd.sh ] && . /usr/local/bin/setup_robotology_tdd.sh" >> /root/.bashrc | ||
|
||
# If a CMD is passed, execute it | ||
exec "$@" |
File renamed without changes.
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,7 +4,7 @@ ARG SOURCE_IMG="none" | |
|
||
ARG HOME_DIR=/home/icub | ||
ARG PROJECTS_DIR=${HOME_DIR}/projects | ||
ARG INSTALL_DIR=${HOME_DIR}/install_dir | ||
ARG INSTALL_DIR=${PROJECTS_DIR}/robotology-superbuild/build/install | ||
ARG release="master" | ||
ARG sbtag="Stable" | ||
ARG metadata="data" | ||
|
@@ -14,7 +14,7 @@ ARG ROBOTOLOGY_INITIALIZATION_FILE=/usr/local/bin/setup_robotology_tdd.sh | |
# Define default user | ||
ARG USERNAME=icub | ||
|
||
FROM $SOURCE_IMG as superbuild_builder | ||
FROM $SOURCE_IMG AS superbuild_builder | ||
|
||
LABEL maintainer="[email protected], [email protected]" | ||
|
||
|
@@ -48,6 +48,7 @@ RUN cd ${PROJECTS_DIR}/robotology-superbuild &&\ | |
cd build &&\ | ||
cmake .. \ | ||
-G "$CMAKE_GENERATOR" \ | ||
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \ | ||
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \ | ||
-DNON_INTERACTIVE_BUILD:BOOL=ON \ | ||
-DROBOTOLOGY_ENABLE_CORE:BOOL=ON \ | ||
|
@@ -57,11 +58,9 @@ RUN cd ${PROJECTS_DIR}/robotology-superbuild &&\ | |
-DYCM_USE_DEPRECATED:BOOL=OFF \ | ||
-DROBOTOLOGY_USES_GAZEBO=OFF \ | ||
-DROBOTOLOGY_PROJECT_TAGS=${sbtag} \ | ||
-DYCM_EP_INSTALL_DIR=${INSTALL_DIR} \ | ||
-DENABLE_yarpmod_grabber:BOOL=ON \ | ||
-DYCM_USE_CMAKE_PROPOSED=ON \ | ||
&&\ | ||
# Build all the projects | ||
cmake --build . --target update-all -- ${CMAKE_EXTRA_OPTIONS} &&\ | ||
cmake --build . -- ${CMAKE_EXTRA_OPTIONS} | ||
|
||
FROM scratch | ||
|
2 changes: 1 addition & 1 deletion
2
dockerfile_images/basic/superbuild-icubhead-robometry/conf_build.ini
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
Oops, something went wrong.