isaac-sim/IsaacSim-ros_workspaces

Error with ./build_foxy.sh

Closed this issue · 1 comments

Hi I met a error when creating the docker image for ROS 2 Foxy on Ubuntu 20. I was following the tutorial Building ROS 2 Workspaces with Python3.10

My environment information:
OS: Ubuntu 20.04
ROS2 Distributor: Foxy

How to reproduce the error:

git clone https://github.com/NVIDIA-Omniverse/IsaacSim-ros_workspaces.git
cd IsaacSim-ros_workspaces
./build_foxy.sh

Error Print

~/IsaacSim-ros_workspaces$ ./build_foxy.sh 
[+] Building 493.9s (31/31) FINISHED                             docker:default
 => [internal] load build definition from ubuntu_20_foxy_minimal.dockerfi  0.1s
 => => transferring dockerfile: 3.35kB                                     0.0s
 => [internal] load .dockerignore                                          0.1s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04            3.0s
 => [internal] load build context                                          0.2s
 => => transferring context: 6.81MB                                        0.1s
 => [ 1/27] FROM docker.io/library/ubuntu:20.04@sha256:ed4a42283d9943135e  2.0s
 => => resolve docker.io/library/ubuntu:20.04@sha256:ed4a42283d9943135ed8  0.0s
 => => sha256:ed4a42283d9943135ed87d4ee34e542f7f5ad9ecf2f 1.13kB / 1.13kB  0.0s
 => => sha256:218bb51abbd1864df8be26166f847547b3851a89999ca7b 424B / 424B  0.0s
 => => sha256:bf40b7bc7a11b43785755d3c5f23dee03b08e988b32 2.30kB / 2.30kB  0.0s
 => => sha256:96d54c3075c9eeaed5561fd620828fd6bb5d80eca 27.51MB / 27.51MB  1.2s
 => => extracting sha256:96d54c3075c9eeaed5561fd620828fd6bb5d80ecae7cb25f  0.5s
 => [ 2/27] WORKDIR /workspace                                             0.1s
 => [ 3/27] RUN apt-get update &&     apt-get install -y --no-install-re  34.8s
 => [ 4/27] RUN apt update && apt upgrade -y && apt clean                  7.5s
 => [ 5/27] RUN apt update &&     apt install --no-install-recommends -  100.8s 
 => [ 6/27] RUN apt update && apt install locales                          5.0s 
 => [ 7/27] RUN locale-gen en_US en_US.UTF-8 &&     update-locale LC_ALL=  1.0s 
 => [ 8/27] RUN update-alternatives --install /usr/bin/python3 python3 /u  0.1s 
 => [ 9/27] RUN update-alternatives --install /usr/bin/python3 python3 /u  0.2s 
 => [10/27] RUN curl -s https://bootstrap.pypa.io/get-pip.py -o get-pip.p  7.4s
 => [11/27] RUN wget --no-check-certificate https://raw.githubusercontent  0.8s
 => [12/27] RUN sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http  0.2s
 => [13/27] RUN apt update && apt install -y   python3-pip   python3-pyt  75.5s
 => [14/27] RUN python3 -m pip install -U   argcomplete   flake8-blind-e  10.8s
 => [15/27] RUN python3.10 -m pip uninstall numpy -y                       0.4s
 => [16/27] RUN python3.10 -m pip install --upgrade pip                    0.7s
 => [17/27] RUN python3.10 -m pip install numpy                            3.6s
 => [18/27] RUN pip3 install setuptools==58.2.0                            1.9s
 => [19/27] RUN mkdir -p foxy_ws/src &&     cd foxy_ws &&     rosinstall  56.4s
 => [20/27] RUN rosdep init && rosdep update                               6.2s
 => [21/27] RUN cd foxy_ws && colcon build --merge-install               173.8s
 => [22/27] RUN cp /usr/lib/x86_64-linux-gnu/libtinyxml2.so* /workspace/f  0.1s
 => [23/27] RUN cp /usr/lib/x86_64-linux-gnu/libssl.so* /workspace/foxy_w  0.2s
 => [24/27] RUN cp /usr/lib/x86_64-linux-gnu/libcrypto.so* /workspace/fox  0.2s
 => [25/27] RUN cd ${WORKDIR} && mkdir build_ws                            0.2s
 => [26/27] COPY foxy_ws build_ws                                          0.1s
 => ERROR [27/27] RUN /bin/bash -c "source foxy_ws/install/setup.sh && cd  0.6s
------
 > [27/27] RUN /bin/bash -c "source foxy_ws/install/setup.sh && cd build_ws && colcon build --packages-select custom_message --merge-install":
0.555 [0.342s] ERROR:colcon:colcon build: The install directory 'install' was created with the layout 'isolated'. Please remove the install directory, pick a different one or remove the '--merge-install' option.
------
ubuntu_20_foxy_minimal.dockerfile:103
--------------------
 101 |     
 102 |     # Build the added workspace
 103 | >>> RUN /bin/bash -c "source ${ROS_ROOT}/install/setup.sh && cd build_ws && colcon build --packages-select custom_message --merge-install"
--------------------
ERROR: failed to solve: process "/bin/sh -c /bin/bash -c \"source ${ROS_ROOT}/install/setup.sh && cd build_ws && colcon build --packages-select custom_message --merge-install\"" did not complete successfully: exit code: 1

Thank you in advance!

solved by deleting the "build, install and log" folders