Intel® Edge Software Hub
Get help on building Edge Software Hub solutions for edge compute node
Announcements
Welcome to the Intel Community! If you like the answer to your question, please mark it as 'Accepted Solution' to help others.

The Edge Software Vision Package for Red Hat Enterprise Linux is now available here.

Learn more about developing on Intel® Hardware and Software here.
293 Discussions

Edge Insights for AMR 2021.3 installation error

Youngsik_Y_Intel
Employee
865 Views

Hi, 

When I ran "docker build --tag amr-ubuntu2004-ros2-foxy-sdk:2021.3 --no-cache --file amr_ubuntu2004_ros2_foxy_sdk_env/Dockerfile amr_ubuntu2004_ros2_foxy_sdk_env" to install EI for AMR 2021.3, I got the following error.

amr_error.png

 

So I changed its dependency "software-properties-common=0.98.9.2" to "software-properties-common" in Dockerfile and it proceeded to the next. But now I encountered the below error in the rtabmap_ros building.

It seems some libs/packages are missing for rtabmap_ros. Could you please check? 

 

<Error log> ////////////////////////////////////////////////////////////////////////////

Step 60/119 : WORKDIR ${ROS2_WS}/src

---> Running in 438e06015a8b

Removing intermediate container 438e06015a8b

---> cf6c22961cfd

Step 61/119 : ARG RTAB_MAP_ROS_COMMIT_ID="c0fbb3f1c35f197ff53aed3a49587f9efe0b544d"

---> Running in 4ba862ecde5b

Removing intermediate container 4ba862ecde5b

---> 084ff02a1253

Step 62/119 : RUN git clone --branch ros2 https://github.com/introlab/rtabmap_ros.git rtabmap_ros     && cd rtabmap_ros                                                                   && git checkout ${RTAB_MAP_ROS_COMMIT_ID}

---> Running in c45741875569

+ git clone --branch ros2 https://github.com/introlab/rtabmap_ros.git rtabmap_ros

Cloning into 'rtabmap_ros'...

+ cd rtabmap_ros

+ git checkout c0fbb3f1c35f197ff53aed3a49587f9efe0b544d

Note: switching to 'c0fbb3f1c35f197ff53aed3a49587f9efe0b544d'.

 

You are in 'detached HEAD' state. You can look around, make experimental

changes and commit them, and you can discard any commits you make in this

state without impacting any branches by switching back to a branch.

 

If you want to create a new branch to retain commits you create, you may

do so (now or later) by using -c with the switch command. Example:

 

  git switch -c <new-branch-name>

 

Or undo this operation with:

 

  git switch -

 

Turn off this advice by setting config variable advice.detachedHead to false

 

HEAD is now at c0fbb3f1 Merge pull request #632 from easylyou/ros2

Removing intermediate container c45741875569

---> 2c2eb5c21da7

Step 63/119 : WORKDIR ${ROS2_WS}

---> Running in 30110c8a290f

Removing intermediate container 30110c8a290f

---> d08c65c96b4f

Step 64/119 : RUN source ${ROS_INSTALL_DIR}/setup.bash && colcon build             && rm -rf ${ROS2_WS}/build/* ${ROS2_WS}/src/* ${ROS2_WS}/log/*

---> Running in 1336bc1ab68b

+ source /opt/ros/foxy/setup.bash

++ AMENT_SHELL=bash

++++ dirname /opt/ros/foxy/setup.bash

+++ builtin cd /opt/ros/foxy

+++ pwd

++ AMENT_CURRENT_PREFIX=/opt/ros/foxy

++ '[' -n '' ']'

++ . /opt/ros/foxy/setup.sh

+++ : /opt/ros/foxy

+++ : bash

+++ _prefix_setup_IFS='              

'

+++ IFS='

'

+++ _UNIQUE_PREFIX_PATH=

+++ '[' -z SKIP_PARENT_PREFIX_PATH ']'

+++ ament_append_unique_value _UNIQUE_PREFIX_PATH /opt/ros/foxy

+++ _listname=_UNIQUE_PREFIX_PATH

+++ _value=/opt/ros/foxy

+++ eval '_values=$_UNIQUE_PREFIX_PATH'

++++ _values=

+++ _duplicate=

+++ _ament_append_unique_value_IFS='

'

+++ IFS=:

+++ '[' bash = zsh ']'

+++ unset _item

+++ '[' -z '' ']'

+++ '[' -z '' ']'

+++ eval '_UNIQUE_PREFIX_PATH="/opt/ros/foxy"'

++++ _UNIQUE_PREFIX_PATH=/opt/ros/foxy

+++ IFS='

'

+++ unset _ament_append_unique_value_IFS

+++ unset _duplicate

+++ unset _values

+++ unset _value

+++ unset _listname

+++ unset AMENT_CURRENT_PREFIX

+++ _prefix_setup_AMENT_SHELL=bash

+++ IFS=:

+++ '[' bash = zsh ']'

+++ for _path in $_UNIQUE_PREFIX_PATH

+++ '[' -n '' ']'

+++ '[' -f /opt/ros/foxy/local_setup.bash ']'

+++ '[' bash = sh ']'

+++ IFS='            

'

+++ . /opt/ros/foxy/local_setup.bash

++++ AMENT_SHELL=bash

++++++ dirname /opt/ros/foxy/local_setup.bash

+++++ builtin cd /opt/ros/foxy

+++++ pwd

++++ AMENT_CURRENT_PREFIX=/opt/ros/foxy

++++ '[' -n '' ']'

++++ . /opt/ros/foxy/local_setup.sh

+++++ _ament_prefix_sh_AMENT_CURRENT_PREFIX=/opt/ros/foxy

+++++ '[' -z /opt/ros/foxy ']'

+++++ _ament_prefix_sh_AMENT_CURRENT_PREFIX=/opt/ros/foxy

+++++ : bash

+++++ _ament_python_executable=/usr/bin/python3

+++++ '[' -n '' ']'

+++++ '[' '!' -f /usr/bin/python3 ']'

+++++ _ament_additional_extension=

+++++ '[' bash '!=' sh ']'

+++++ _ament_additional_extension=bash

++++++ /usr/bin/python3 /opt/ros/foxy/_local_setup_util.py sh bash

+++++ _ament_ordered_commands='export AMENT_PREFIX_PATH="/opt/ros/foxy:$AMENT_PREFIX_PATH"

export PATH="/opt/ros/foxy/bin:$PATH"

export PYTHONPATH="/opt/ros/foxy/lib/python3.8/site-packages:$PYTHONPATH"

export LD_LIBRARY_PATH="/opt/ros/foxy/lib:$LD_LIBRARY_PATH"

AMENT_CURRENT_PREFIX="/opt/ros/foxy" _ament_prefix_sh_source_script "/opt/ros/foxy/share/ros2cli/environment/ros2-argcomplete.bash"

AMENT_CURRENT_PREFIX="/opt/ros/foxy" _ament_prefix_sh_source_script "/opt/ros/foxy/share/ros_environment/environment/0.ros_distro_check.sh"

export ROS_DISTRO="foxy"

export ROS_LOCALHOST_ONLY="0"

export ROS_PYTHON_VERSION="3"

export ROS_VERSION="2"

export LD_LIBRARY_PATH="/opt/ros/foxy/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"

export LD_LIBRARY_PATH="/opt/ros/foxy/opt/rviz_ogre_vendor/lib:$LD_LIBRARY_PATH"

export LD_LIBRARY_PATH="/opt/ros/foxy/opt/yaml_cpp_vendor/lib:$LD_LIBRARY_PATH"

export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:$LD_LIBRARY_PATH"

if [ "$(echo -n $AMENT_PREFIX_PATH | tail -c 1)" = ":" ]; then export AMENT_PREFIX_PATH=${AMENT_PREFIX_PATH%?} ; fi

if [ "$(echo -n $PYTHONPATH | tail -c 1)" = ":" ]; then export PYTHONPATH=${PYTHONPATH%?} ; fi

if [ "$(echo -n $LD_LIBRARY_PATH | tail -c 1)" = ":" ]; then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH%?} ; fi

if [ "$(echo -n $ROS_PYTHON_VERSION | tail -c 1)" = ":" ]; then export ROS_PYTHON_VERSION=${ROS_PYTHON_VERSION%?} ; fi

if [ "$(echo -n $ROS_VERSION | tail -c 1)" = ":" ]; then export ROS_VERSION=${ROS_VERSION%?} ; fi'

+++++ unset _ament_additional_extension

+++++ unset _ament_python_executable

+++++ '[' -n '' ']'

+++++ eval 'export AMENT_PREFIX_PATH="/opt/ros/foxy:$AMENT_PREFIX_PATH"

export PATH="/opt/ros/foxy/bin:$PATH"

export PYTHONPATH="/opt/ros/foxy/lib/python3.8/site-packages:$PYTHONPATH"

export LD_LIBRARY_PATH="/opt/ros/foxy/lib:$LD_LIBRARY_PATH"

AMENT_CURRENT_PREFIX="/opt/ros/foxy" _ament_prefix_sh_source_script "/opt/ros/foxy/share/ros2cli/environment/ros2-argcomplete.bash"

AMENT_CURRENT_PREFIX="/opt/ros/foxy" _ament_prefix_sh_source_script "/opt/ros/foxy/share/ros_environment/environment/0.ros_distro_check.sh"

export ROS_DISTRO="foxy"

export ROS_LOCALHOST_ONLY="0"

export ROS_PYTHON_VERSION="3"

export ROS_VERSION="2"

export LD_LIBRARY_PATH="/opt/ros/foxy/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"

export LD_LIBRARY_PATH="/opt/ros/foxy/opt/rviz_ogre_vendor/lib:$LD_LIBRARY_PATH"

export LD_LIBRARY_PATH="/opt/ros/foxy/opt/yaml_cpp_vendor/lib:$LD_LIBRARY_PATH"

export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:$LD_LIBRARY_PATH"

if [ "$(echo -n $AMENT_PREFIX_PATH | tail -c 1)" = ":" ]; then export AMENT_PREFIX_PATH=${AMENT_PREFIX_PATH%?} ; fi

if [ "$(echo -n $PYTHONPATH | tail -c 1)" = ":" ]; then export PYTHONPATH=${PYTHONPATH%?} ; fi

if [ "$(echo -n $LD_LIBRARY_PATH | tail -c 1)" = ":" ]; then export LD_LIBRARY_PATH=${LD_LIBRARY_PATH%?} ; fi

if [ "$(echo -n $ROS_PYTHON_VERSION | tail -c 1)" = ":" ]; then export ROS_PYTHON_VERSION=${ROS_PYTHON_VERSION%?} ; fi

if [ "$(echo -n $ROS_VERSION | tail -c 1)" = ":" ]; then export ROS_VERSION=${ROS_VERSION%?} ; fi'

++++++ export AMENT_PREFIX_PATH=/opt/ros/foxy:

++++++ AMENT_PREFIX_PATH=/opt/ros/foxy:

++++++ export PATH=/opt/ros/foxy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

++++++ PATH=/opt/ros/foxy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

++++++ export PYTHONPATH=/opt/ros/foxy/lib/python3.8/site-packages:

++++++ PYTHONPATH=/opt/ros/foxy/lib/python3.8/site-packages:

++++++ export LD_LIBRARY_PATH=/opt/ros/foxy/lib:

++++++ LD_LIBRARY_PATH=/opt/ros/foxy/lib:

++++++ AMENT_CURRENT_PREFIX=/opt/ros/foxy

++++++ _ament_prefix_sh_source_script /opt/ros/foxy/share/ros2cli/environment/ros2-argcomplete.bash

++++++ '[' -f /opt/ros/foxy/share/ros2cli/environment/ros2-argcomplete.bash ']'

++++++ '[' -n '' ']'

++++++ . /opt/ros/foxy/share/ros2cli/environment/ros2-argcomplete.bash

+++++++ type register-python-argcomplete3

++++++++ register-python-argcomplete3 ros2

+++++++ eval '

_python_argcomplete() {

    local IFS=$'\''\013'\''

    local SUPPRESS_SPACE=0

    if compopt +o nospace 2> /dev/null; then

        SUPPRESS_SPACE=1

    fi

    COMPREPLY=( $(IFS="$IFS" \

                  COMP_LINE="$COMP_LINE" \

                  COMP_POINT="$COMP_POINT" \

                  COMP_TYPE="$COMP_TYPE" \

                  _ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" \

                  _ARGCOMPLETE=1 \

                  _ARGCOMPLETE_SUPPRESS_SPACE=$SUPPRESS_SPACE \

                  "$1" 8>&1 9>&2 1>/dev/null 2>/dev/null) )

    if [[ $? != 0 ]]; then

        unset COMPREPLY

    elif [[ $SUPPRESS_SPACE == 1 ]] && [[ "$COMPREPLY" =~ [=/:]$ ]]; then

        compopt -o nospace

    fi

}

complete -o nospace -o default -F _python_argcomplete "ros2"'

++++++++ complete -o nospace -o default -F _python_argcomplete ros2

++++++ AMENT_CURRENT_PREFIX=/opt/ros/foxy

++++++ _ament_prefix_sh_source_script /opt/ros/foxy/share/ros_environment/environment/0.ros_distro_check.sh

++++++ '[' -f /opt/ros/foxy/share/ros_environment/environment/0.ros_distro_check.sh ']'

++++++ '[' -n '' ']'

++++++ . /opt/ros/foxy/share/ros_environment/environment/0.ros_distro_check.sh

+++++++ '[' -n foxy -a foxy '!=' foxy ']'

++++++ export ROS_DISTRO=foxy

++++++ ROS_DISTRO=foxy

++++++ export ROS_LOCALHOST_ONLY=0

++++++ ROS_LOCALHOST_ONLY=0

++++++ export ROS_PYTHON_VERSION=3

++++++ ROS_PYTHON_VERSION=3

++++++ export ROS_VERSION=2

++++++ ROS_VERSION=2

++++++ export LD_LIBRARY_PATH=/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib:

++++++ LD_LIBRARY_PATH=/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib:

++++++ export LD_LIBRARY_PATH=/opt/ros/foxy/opt/rviz_ogre_vendor/lib:/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib:

++++++ LD_LIBRARY_PATH=/opt/ros/foxy/opt/rviz_ogre_vendor/lib:/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib:

++++++ export LD_LIBRARY_PATH=/opt/ros/foxy/opt/yaml_cpp_vendor/lib:/opt/ros/foxy/opt/rviz_ogre_vendor/lib:/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib:

++++++ LD_LIBRARY_PATH=/opt/ros/foxy/opt/yaml_cpp_vendor/lib:/opt/ros/foxy/opt/rviz_ogre_vendor/lib:/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib:

++++++ export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/foxy/opt/yaml_cpp_vendor/lib:/opt/ros/foxy/opt/rviz_ogre_vendor/lib:/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib:

++++++ LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/foxy/opt/yaml_cpp_vendor/lib:/opt/ros/foxy/opt/rviz_ogre_vendor/lib:/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib:

+++++++ echo -n /opt/ros/foxy:

+++++++ tail -c 1

++++++ '[' : = : ']'

++++++ export AMENT_PREFIX_PATH=/opt/ros/foxy

++++++ AMENT_PREFIX_PATH=/opt/ros/foxy

+++++++ echo -n /opt/ros/foxy/lib/python3.8/site-packages:

+++++++ tail -c 1

++++++ '[' : = : ']'

++++++ export PYTHONPATH=/opt/ros/foxy/lib/python3.8/site-packages

++++++ PYTHONPATH=/opt/ros/foxy/lib/python3.8/site-packages

+++++++ echo -n /usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/foxy/opt/yaml_cpp_vendor/lib:/opt/ros/foxy/opt/rviz_ogre_vendor/lib:/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib:

+++++++ tail -c 1

++++++ '[' : = : ']'

++++++ export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/foxy/opt/yaml_cpp_vendor/lib:/opt/ros/foxy/opt/rviz_ogre_vendor/lib:/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib

++++++ LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/opt/ros/foxy/opt/yaml_cpp_vendor/lib:/opt/ros/foxy/opt/rviz_ogre_vendor/lib:/opt/ros/foxy/lib/x86_64-linux-gnu:/opt/ros/foxy/lib

+++++++ echo -n 3

+++++++ tail -c 1

++++++ '[' 3 = : ']'

+++++++ echo -n 2

+++++++ tail -c 1

++++++ '[' 2 = : ']'

+++++ unset _ament_ordered_commands

+++++ unset _ament_prefix_sh_source_script

+++++ unset _ament_prefix_sh_AMENT_CURRENT_PREFIX

+++ AMENT_SHELL=bash

+++ unset _path

+++ IFS='            

'

+++ unset _prefix_setup_IFS

+++ unset _prefix_setup_AMENT_SHELL

+++ unset _UNIQUE_PREFIX_PATH

+++ unset AMENT_SHELL

+ colcon build

Starting >>> rtabmap_ros

--- stderr: rtabmap_ros

Member name 'global' in the service request 'GetMap' is a reserved keyword in Python and is not supported at the moment. Please use a different name.

Member name 'global' in the service request 'PublishMap' is a reserved keyword in Python and is not supported at the moment. Please use a different name.

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp: In function ‘rtabmap::Landmarks rtabmap_ros::landmarksFromROS(const std::map<int, geometry_msgs::msg::PoseWithCovarianceStamped_<std::allocator<void> > >&, const string&, const string&, const rclcpp::Time&, tf2_ros::Buffer&, double, double, double)’:

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:1338:101: warning: ‘rtabmap::Landmark::Landmark(const int&, const rtabmap::Transform&, const cv::Mat&)’ is deprecated: Use constructor with size=0 instead. [-Wdeprecated-declarations]

1338 |    landmarks.insert(std::make_pair(iter->first, rtabmap::Landmark(iter->first, baseToTag, covariance)));

      |                                                                                                     ^

In file included from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/SensorData.h:42,

                 from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/Signature.h:42,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/include/rtabmap_ros/MsgConversion.h:46,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:28:

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/Landmark.h:80:8: note: declared here

   80 | inline Landmark::Landmark(const int & id, const Transform & pose, const cv::Mat & covariance) :

      |        ^~~~~~~~

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp: In function ‘bool rtabmap_ros::convertScan3dMsg(const PointCloud2&, const string&, const string&, const rclcpp::Time&, rtabmap::LaserScan&, tf2_ros::Buffer&, double, int, float)’:

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:1842:156: warning: ‘rtabmap::LaserScan::LaserScan(const rtabmap::LaserScan&, int, float, rtabmap::LaserScan::Format, const rtabmap::Transform&)’ is deprecated: Use version without "format" argument. [-Wdeprecated-declarations]

1842 |    scan = rtabmap::LaserScan(rtabmap::util3d::laserScanFromPointCloud(*pclScan), maxPoints, maxRange, rtabmap::LaserScan::kXYZRGBNormal, scanLocalTransform);

      |                                                                                                                                                            ^

In file included from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/Transform.h:31,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/include/rtabmap_ros/MsgConversion.h:44,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:28:

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/LaserScan.h:78:21: note: declared here

   78 |  RTABMAP_DEPRECATED(LaserScan(const LaserScan & data,

      |                     ^~~~~~~~~

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/RtabmapExp.h:42:39: note: in definition of macro ‘RTABMAP_DEPRECATED’

   42 | #define RTABMAP_DEPRECATED(func, msg) func __attribute__ ((deprecated(msg)))

      |                                       ^~~~

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:1852:154: warning: ‘rtabmap::LaserScan::LaserScan(const rtabmap::LaserScan&, int, float, rtabmap::LaserScan::Format, const rtabmap::Transform&)’ is deprecated: Use version without "format" argument. [-Wdeprecated-declarations]

1852 |    scan = rtabmap::LaserScan(rtabmap::util3d::laserScanFromPointCloud(*pclScan), maxPoints, maxRange, rtabmap::LaserScan::kXYZINormal, scanLocalTransform);

      |                                                                                                                                                          ^

In file included from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/Transform.h:31,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/include/rtabmap_ros/MsgConversion.h:44,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:28:

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/LaserScan.h:78:21: note: declared here

   78 |  RTABMAP_DEPRECATED(LaserScan(const LaserScan & data,

      |                     ^~~~~~~~~

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/RtabmapExp.h:42:39: note: in definition of macro ‘RTABMAP_DEPRECATED’

   42 | #define RTABMAP_DEPRECATED(func, msg) func __attribute__ ((deprecated(msg)))

      |                                       ^~~~

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:1862:153: warning: ‘rtabmap::LaserScan::LaserScan(const rtabmap::LaserScan&, int, float, rtabmap::LaserScan::Format, const rtabmap::Transform&)’ is deprecated: Use version without "format" argument. [-Wdeprecated-declarations]

1862 |    scan = rtabmap::LaserScan(rtabmap::util3d::laserScanFromPointCloud(*pclScan), maxPoints, maxRange, rtabmap::LaserScan::kXYZNormal, scanLocalTransform);

      |                                                                                                                                                         ^

In file included from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/Transform.h:31,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/include/rtabmap_ros/MsgConversion.h:44,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:28:

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/LaserScan.h:78:21: note: declared here

   78 |  RTABMAP_DEPRECATED(LaserScan(const LaserScan & data,

      |                     ^~~~~~~~~

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/RtabmapExp.h:42:39: note: in definition of macro ‘RTABMAP_DEPRECATED’

   42 | #define RTABMAP_DEPRECATED(func, msg) func __attribute__ ((deprecated(msg)))

      |                                       ^~~~

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:1875:150: warning: ‘rtabmap::LaserScan::LaserScan(const rtabmap::LaserScan&, int, float, rtabmap::LaserScan::Format, const rtabmap::Transform&)’ is deprecated: Use version without "format" argument. [-Wdeprecated-declarations]

1875 |    scan = rtabmap::LaserScan(rtabmap::util3d::laserScanFromPointCloud(*pclScan), maxPoints, maxRange, rtabmap::LaserScan::kXYZRGB, scanLocalTransform);

      |                                                                                                                                                      ^

In file included from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/Transform.h:31,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/include/rtabmap_ros/MsgConversion.h:44,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:28:

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/LaserScan.h:78:21: note: declared here

   78 |  RTABMAP_DEPRECATED(LaserScan(const LaserScan & data,

      |                     ^~~~~~~~~

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/RtabmapExp.h:42:39: note: in definition of macro ‘RTABMAP_DEPRECATED’

   42 | #define RTABMAP_DEPRECATED(func, msg) func __attribute__ ((deprecated(msg)))

      |                                       ^~~~

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:1885:148: warning: ‘rtabmap::LaserScan::LaserScan(const rtabmap::LaserScan&, int, float, rtabmap::LaserScan::Format, const rtabmap::Transform&)’ is deprecated: Use version without "format" argument. [-Wdeprecated-declarations]

1885 |    scan = rtabmap::LaserScan(rtabmap::util3d::laserScanFromPointCloud(*pclScan), maxPoints, maxRange, rtabmap::LaserScan::kXYZI, scanLocalTransform);

      |                                                                                                                                                    ^

In file included from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/Transform.h:31,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/include/rtabmap_ros/MsgConversion.h:44,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:28:

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/LaserScan.h:78:21: note: declared here

   78 |  RTABMAP_DEPRECATED(LaserScan(const LaserScan & data,

      |                     ^~~~~~~~~

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/RtabmapExp.h:42:39: note: in definition of macro ‘RTABMAP_DEPRECATED’

   42 | #define RTABMAP_DEPRECATED(func, msg) func __attribute__ ((deprecated(msg)))

      |                                       ^~~~

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:1895:147: warning: ‘rtabmap::LaserScan::LaserScan(const rtabmap::LaserScan&, int, float, rtabmap::LaserScan::Format, const rtabmap::Transform&)’ is deprecated: Use version without "format" argument. [-Wdeprecated-declarations]

1895 |    scan = rtabmap::LaserScan(rtabmap::util3d::laserScanFromPointCloud(*pclScan), maxPoints, maxRange, rtabmap::LaserScan::kXYZ, scanLocalTransform);

      |                                                                                                                                                   ^

In file included from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/Transform.h:31,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/include/rtabmap_ros/MsgConversion.h:44,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/src/MsgConversion.cpp:28:

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/LaserScan.h:78:21: note: declared here

   78 |  RTABMAP_DEPRECATED(LaserScan(const LaserScan & data,

      |                     ^~~~~~~~~

/usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/RtabmapExp.h:42:39: note: in definition of macro ‘RTABMAP_DEPRECATED’

   42 | #define RTABMAP_DEPRECATED(func, msg) func __attribute__ ((deprecated(msg)))

      |                                       ^~~~

c++: fatal error: Killed signal terminated program cc1plus

compilation terminated.

make[2]: *** [CMakeFiles/rtabmap_sync.dir/build.make:63: CMakeFiles/rtabmap_sync.dir/src/CommonDataSubscriber.cpp.o] Error 1

make[2]: *** Waiting for unfinished jobs....

In file included from /home/eiforamr/ros2_ws/src/rtabmap_ros/src/rviz/MapGraphDisplay.cpp:172:

/opt/ros/foxy/include/pluginlib/class_list_macros.h:36:2: warning: #warning Including header <pluginlib/class_list_macros.h> is deprecated, include <pluginlib/class_list_macros.hpp> instead. [-Wcpp]

   36 | #warning Including header <pluginlib/class_list_macros.h> is deprecated, \

      |  ^~~~~~~

c++: fatal error: Killed signal terminated program cc1plus

compilation terminated.

make[2]: *** [CMakeFiles/rtabmap_plugins.dir/build.make:63: CMakeFiles/rtabmap_plugins.dir/src/nodelets/rgbd_odometry.cpp.o] Error 1

make[1]: *** [CMakeFiles/Makefile2:684: CMakeFiles/rtabmap_plugins.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/rviz/MapCloudDisplay.cpp: In member function ‘virtual void rtabmap_ros::MapCloudDisplay::update(float, float)’:

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/rviz/MapCloudDisplay.cpp:725:75: warning: ‘Ogre::Quaternion Ogre::TransformBaseReal::extractQuaternion() const’ is deprecated [-Wdeprecated-declarations]

  725 |       Ogre::Quaternion poseOrientation = frameTransform.extractQuaternion();

      |                                                                           ^

In file included from /opt/ros/foxy/opt/rviz_ogre_vendor/include/OGRE/OgreNode.h:38,

                 from /opt/ros/foxy/opt/rviz_ogre_vendor/include/OGRE/OgreSceneNode.h:38,

                 from /opt/ros/foxy/include/rviz_common/ros_topic_display.hpp:38,

                 from /opt/ros/foxy/include/rviz_common/message_filter_display.hpp:38,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/src/rviz/MapCloudDisplay.h:45,

                 from /home/eiforamr/ros2_ws/src/rtabmap_ros/src/rviz/MapCloudDisplay.cpp:28:

/opt/ros/foxy/opt/rviz_ogre_vendor/include/OGRE/OgreMatrix4.h:198:36: note: declared here

  198 |         OGRE_DEPRECATED Quaternion extractQuaternion() const { return Quaternion(linear()); }

      |                                    ^~~~~~~~~~~~~~~~~

c++: fatal error: Killed signal terminated program cc1plus

compilation terminated.

make[2]: *** [CMakeFiles/rtabmap_sync.dir/build.make:115: CMakeFiles/rtabmap_sync.dir/src/impl/CommonDataSubscriberRGBD.cpp.o] Error 1

In file included from /home/eiforamr/ros2_ws/src/rtabmap_ros/src/rviz/InfoDisplay.cpp:125:

/opt/ros/foxy/include/pluginlib/class_list_macros.h:36:2: warning: #warning Including header <pluginlib/class_list_macros.h> is deprecated, include <pluginlib/class_list_macros.hpp> instead. [-Wcpp]

   36 | #warning Including header <pluginlib/class_list_macros.h> is deprecated, \

      |  ^~~~~~~

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/rviz/InfoDisplay.cpp: In member function ‘virtual void rtabmap_ros::InfoDisplay::update(float, float)’:

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/rviz/InfoDisplay.cpp:84:33: warning: unused parameter ‘wall_dt’ [-Wunused-parameter]

   84 | void InfoDisplay::update( float wall_dt, float ros_dt )

      |                           ~~~~~~^~~~~~~

/home/eiforamr/ros2_ws/src/rtabmap_ros/src/rviz/InfoDisplay.cpp:84:48: warning: unused parameter ‘ros_dt’ [-Wunused-parameter]

   84 | void InfoDisplay::update( float wall_dt, float ros_dt )

      |                                          ~~~~~~^~~~~~

make[1]: *** [CMakeFiles/Makefile2:951: CMakeFiles/rtabmap_sync.dir/all] Error 2

make: *** [Makefile:141: all] Error 2

---

Failed   <<< rtabmap_ros [3min 29s, exited with code 2]

[Processing: rtabmap_ros]

[Processing: rtabmap_ros]

[Processing: rtabmap_ros]

[Processing: rtabmap_ros]

[Processing: rtabmap_ros]

[Processing: rtabmap_ros]

 

Summary: 0 packages finished [3min 29s]

  1 package failed: rtabmap_ros

  1 package had stderr output: rtabmap_ros

The command '/bin/bash -xo pipefail -c source ${ROS_INSTALL_DIR}/setup.bash && colcon build             && rm -rf ${ROS2_WS}/build/* ${ROS2_WS}/src/* ${ROS2_WS}/log/*' returned a non-zero code: 2

0 Kudos
1 Solution
Yihongyu
Employee
788 Views

It works on my setup by adding "export MAKEFLAGS='-j2' " in the Dockerfile.

 

source ${ROS_INSTALL_DIR}/setup.bash && export MAKEFLAGS='-j2' && colcon build

View solution in original post

5 Replies
Yihongyu
Employee
824 Views

I met the same issue. Any fix now?

Thank you!

JesusE_Intel
Moderator
801 Views

Hi Yihongyu, Youngsik_Y_Intel,


Thank you for reporting, I was able to reproduce the issue on my side. I am reaching out for my peers for a fix or workaround. I will provide an update as soon as I hear back.


Regards,

Jesus


Yihongyu
Employee
789 Views

It works on my setup by adding "export MAKEFLAGS='-j2' " in the Dockerfile.

 

source ${ROS_INSTALL_DIR}/setup.bash && export MAKEFLAGS='-j2' && colcon build

Nadia_J_Intel
Moderator
781 Views

Hi all, 

 

You can also edit the Dockerfile on the amr_ubuntu2004_ros2_foxy_sdk_env folder on line 176

Nadia_J_Intel_1-1637311674601.png

change the software-properties-common version to 0.99.9.* instead of 0.98.9.*. 

After editing, you can then re-run the docker build. 

 

Thanks

JesusE_Intel
Moderator
678 Views

If you need any additional information, please submit a new question as this thread will no longer be monitored.


Reply