Robotics-Nav2-SLAM-Example icon indicating copy to clipboard operation
Robotics-Nav2-SLAM-Example copied to clipboard

Can I not use the ROS-TCP-Endpoint cpp branch to build Docker images?

Open sdyby2006 opened this issue 1 year ago • 0 comments

Can I not use the ROS-TCP-Endpoint cpp branch to build Docker images? How can I modify it to accommodate? An error occurs when using the cpp branch:

[+] Building 0.0s (0/0)  docker:default
2024/05/13 17:06:12 http2: server: error reading preface from client //./pipe/docker_engine: file has already been close[+] Building 0.0s (0/0)  docker:default
2024/05/13 17:06:13 http2: server: error reading preface from client //./pipe/docker_engine: file has already been close[+] Building 57.1s (15/16)                                                                               docker:default
 => [internal] load build definition from Dockerfile                                                               0.1s
 => => transferring dockerfile: 3.20kB                                                                             0.1s
 => [internal] load metadata for docker.io/dorowu/ubuntu-desktop-lxde-vnc:focal                                    1.3s
 => [internal] load .dockerignore                                                                                  0.1s
 => => transferring context: 2B                                                                                    0.0s
 => [ 1/12] FROM docker.io/dorowu/ubuntu-desktop-lxde-vnc:focal@sha256:07e51eafb6e0923759105eeb8cfc8f0d19be77a212  0.0s
 => [internal] load build context                                                                                  0.3s
 => => transferring context: 929.87kB                                                                              0.2s
 => CACHED [ 2/12] RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -              0.0s
 => CACHED [ 3/12] RUN echo "Set disable_coredump false" >> /etc/sudo.conf                                         0.0s
 => CACHED [ 4/12] RUN apt-get update -q &&     apt-get upgrade -yq &&     apt-get install -yq         wget        0.0s
 => CACHED [ 5/12] RUN curl http://repo.ros2.org/repos.key | sudo apt-key add -                                    0.0s
 => CACHED [ 6/12] RUN curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add - &&   0.0s
 => CACHED [ 7/12] RUN useradd --create-home --home-dir /home/rosdev --shell /bin/bash --user-group --groups adm,  0.0s
 => [ 8/12] COPY --chown=rosdev colcon_ws /home/rosdev/colcon_ws                                                   0.1s
 => [ 9/12] COPY ros2-setup.bash /bin/ros2-setup.bash                                                              0.1s
 => [10/12] RUN curl http://repo.ros2.org/repos.key | sudo apt-key add -                                           1.4s
 => ERROR [11/12] RUN curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add - &&   53.6s
------
 > [11/12] RUN curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add - &&     echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" >         /etc/apt/sources.list.d/ros2-latest.list &&     apt-get update -q &&     rosdep init &&     chmod +x /bin/ros2-setup.bash &&     gosu rosdev /bin/ros2-setup.bash &&     runuser -u rosdev ros2-setup.bash &&     rm /bin/ros2-setup.bash &&     rm -rf /var/lib/apt/lists/* && rm /etc/apt/sources.list.d/ros2-latest.list:
0.518 Warning: apt-key output should not be parsed (stdout is not a terminal)
1.468 OK
2.347 Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1825 B]
2.672 Get:2 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1083 B]
3.023 Get:3 http://packages.ros.org/ros2/ubuntu focal InRelease [4685 B]
3.217 Get:4 http://mirrors.ubuntu.com/mirrors.txt Mirrorlist [3362 B]
3.554 Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
4.391 Get:7 http://mirrors.xmission.com/ubuntu focal-backports InRelease [108 kB]
4.495 Get:9 http://packages.ros.org/ros2/ubuntu focal/main amd64 Packages [1192 kB]
4.621 Get:6 http://mirror.brightridge.com/ubuntuarchive focal-updates InRelease [114 kB]
4.816 Get:5 http://mirror.uoregon.edu/ubuntu focal InRelease [265 kB]
4.960 Get:16 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [29.8 kB]
5.540 Get:10 http://plug-mirror.rcac.purdue.edu/ubuntu focal-backports/main amd64 Packages [55.2 kB]
5.579 Get:11 http://mirrors.advancedhosters.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
5.779 Get:14 http://mirror.uoregon.edu/ubuntu focal-updates/multiverse amd64 Packages [32.5 kB]
6.304 Get:15 https://mirror.servaxnet.com/ubuntu focal-updates/restricted amd64 Packages [3721 kB]
6.398 Get:21 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1203 kB]
6.417 Get:18 https://mirror.d.umn.edu/ubuntu focal/main amd64 Packages [1275 kB]
6.730 Get:13 http://mirror.math.ucdavis.edu/ubuntu focal-updates/universe amd64 Packages [1500 kB]
7.353 Get:12 http://mirror.cogentco.com/pub/linux/ubuntu focal-updates/main amd64 Packages [4104 kB]
8.228 Get:17 http://mirrors.liquidweb.com/ubuntu focal/multiverse amd64 Packages [177 kB]
8.328 Get:22 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [3629 kB]
10.34 Get:20 http://mirror.cogentco.com/pub/linux/ubuntu focal/universe amd64 Packages [11.3 MB]
10.43 Get:19 http://mirror.vcu.edu/pub/gnu+linux/ubuntu focal/restricted amd64 Packages [33.4 kB]
10.50 Get:23 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [3571 kB]
11.61 Fetched 32.5 MB in 10s (3243 kB/s)
11.61 Reading package lists...
14.57 Wrote /etc/ros/rosdep/sources.list.d/20-default.list
14.57 Recommended: please run
14.57
14.57   rosdep update
14.57
17.16 Collecting ipython
18.22   Downloading ipython-8.12.3-py3-none-any.whl (798 kB)
19.51 Collecting prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30
19.72   Downloading prompt_toolkit-3.0.43-py3-none-any.whl (386 kB)
20.21 Collecting backcall
20.43   Downloading backcall-0.2.0-py2.py3-none-any.whl (11 kB)
20.80 Collecting decorator
21.02   Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
21.39 Collecting typing-extensions; python_version < "3.10"
21.61   Downloading typing_extensions-4.11.0-py3-none-any.whl (34 kB)
21.98 Collecting jedi>=0.16
22.20   Downloading jedi-0.19.1-py2.py3-none-any.whl (1.6 MB)
23.18 Collecting pickleshare
23.40   Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
23.77 Collecting pygments>=2.4.0
23.99   Downloading pygments-2.18.0-py3-none-any.whl (1.2 MB)
24.56 Collecting matplotlib-inline
24.80   Downloading matplotlib_inline-0.1.7-py3-none-any.whl (9.9 kB)
25.18 Collecting traitlets>=5
25.40   Downloading traitlets-5.14.3-py3-none-any.whl (85 kB)
25.78 Collecting stack-data
26.00   Downloading stack_data-0.6.3-py3-none-any.whl (24 kB)
26.34 Collecting pexpect>4.3; sys_platform != "win32"
26.54   Downloading pexpect-4.9.0-py2.py3-none-any.whl (63 kB)
26.66 Requirement already satisfied: wcwidth in /usr/lib/python3/dist-packages (from prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30->ipython) (0.1.8)
26.91 Collecting parso<0.9.0,>=0.8.3
27.11   Downloading parso-0.8.4-py2.py3-none-any.whl (103 kB)
27.44 Collecting executing>=1.2.0
27.64   Downloading executing-2.0.1-py2.py3-none-any.whl (24 kB)
27.95 Collecting asttokens>=2.1.0
28.16   Downloading asttokens-2.4.1-py2.py3-none-any.whl (27 kB)
28.46 Collecting pure-eval
28.66   Downloading pure_eval-0.2.2-py3-none-any.whl (11 kB)
28.94 Collecting ptyprocess>=0.5
29.14   Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
29.19 Requirement already satisfied: six>=1.12.0 in /usr/local/lib/python3.8/dist-packages (from asttokens>=2.1.0->stack-data->ipython) (1.12.0)
29.49 Installing collected packages: prompt-toolkit, backcall, decorator, typing-extensions, parso, jedi, pickleshare, pygments, traitlets, matplotlib-inline, executing, asttokens, pure-eval, stack-data, ptyprocess, pexpect, ipython
32.01 Successfully installed asttokens-2.4.1 backcall-0.2.0 decorator-5.1.1 executing-2.0.1 ipython-8.12.3 jedi-0.19.1 matplotlib-inline-0.1.7 parso-0.8.4 pexpect-4.9.0 pickleshare-0.7.5 prompt-toolkit-3.0.43 ptyprocess-0.7.0 pure-eval-0.2.2 pygments-2.18.0 stack-data-0.6.3 traitlets-5.14.3 typing-extensions-4.11.0
52.00 reading in sources list data from /etc/ros/rosdep/sources.list.d
52.00 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
52.00 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
52.00 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
52.00 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
52.00 Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
52.00 Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
52.00 Skip end-of-life distro "ardent"
52.00 Skip end-of-life distro "bouncy"
52.00 Skip end-of-life distro "crystal"
52.00 Skip end-of-life distro "dashing"
52.00 Skip end-of-life distro "eloquent"
52.00 Skip end-of-life distro "foxy"
52.00 Skip end-of-life distro "galactic"
52.00 Skip end-of-life distro "groovy"
52.00 Add distro "humble"
52.00 Skip end-of-life distro "hydro"
52.00 Skip end-of-life distro "indigo"
52.00 Add distro "iron"
52.00 Skip end-of-life distro "jade"
52.00 Add distro "jazzy"
52.00 Skip end-of-life distro "kinetic"
52.00 Skip end-of-life distro "lunar"
52.00 Skip end-of-life distro "melodic"
52.00 Add distro "noetic"
52.00 Add distro "rolling"
52.00 updated cache in /home/rosdev/.ros/rosdep/sources.cache
52.33 #All required rosdeps installed successfully
52.33 ERROR: the following packages/stacks could not have their rosdep keys resolved
52.33 to system dependencies:
52.33 unity_slam_example: Cannot locate rosdep definition for [rviz2]
52.33 ros_tcp_endpoint: Cannot locate rosdep definition for [message_runtime]
52.33 Continuing to install resolvable dependencies...
52.77 Starting >>> ros_tcp_endpoint
52.78 Starting >>> unity_slam_example
53.30 --- stderr: ros_tcp_endpoint
53.30 CMake Error at CMakeLists.txt:4 (find_package):
53.30   By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has
53.30   asked CMake to find a package configuration file provided by "catkin", but
53.30   CMake did not find one.
53.30
53.30   Could not find a package configuration file provided by "catkin" with any
53.30   of the following names:
53.30
53.30     catkinConfig.cmake
53.30     catkin-config.cmake
53.30
53.30   Add the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set
53.30   "catkin_DIR" to a directory containing one of the above files.  If "catkin"
53.30   provides a separate development package or SDK, be sure it has been
53.30   installed.
53.30
53.30
53.30 ---
53.30 Failed   <<< ros_tcp_endpoint [0.53s, exited with code 1]
53.34 Aborted  <<< unity_slam_example [0.56s]
53.36
53.36 Summary: 0 packages finished [0.77s]
53.36   1 package failed: ros_tcp_endpoint
53.36   1 package aborted: unity_slam_example
53.36   1 package had stderr output: ros_tcp_endpoint
------
Dockerfile:55
--------------------
  54 |     RUN curl http://repo.ros2.org/repos.key | sudo apt-key add -
  55 | >>> RUN curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add - && \
  56 | >>>     echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > \
  57 | >>>         /etc/apt/sources.list.d/ros2-latest.list && \
  58 | >>>     apt-get update -q && \
  59 | >>>     rosdep init && \
  60 | >>>     chmod +x /bin/ros2-setup.bash && \
  61 | >>>     gosu ${DEV_NAME} /bin/ros2-setup.bash && \
  62 | >>>     runuser -u ${DEV_NAME} ros2-setup.bash && \
  63 | >>>     rm /bin/ros2-setup.bash && \
  64 | >>>     rm -rf /var/lib/apt/lists/* && rm /etc/apt/sources.list.d/ros2-latest.list
  65 |
--------------------
ERROR: failed to solve: process "/bin/sh -c curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add - &&     echo \"deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main\" >         /etc/apt/sources.list.d/ros2-latest.list &&     apt-get update -q &&     rosdep init &&     chmod +x /bin/ros2-setup.bash &&     gosu ${DEV_NAME} /bin/ros2-setup.bash &&     runuser -u ${DEV_NAME} ros2-setup.bash &&     rm /bin/ros2-setup.bash &&     rm -rf /var/lib/apt/lists/* && rm /etc/apt/sources.list.d/ros2-latest.list" did not complete successfully: exit code: 1

Thank you.

sdyby2006 avatar May 13 '24 09:05 sdyby2006