Ask Your Question
0

Problem with actionlib_msgs

asked 2021-10-31 21:40:43 -0600

sm75 gravatar image

updated 2021-11-02 16:19:48 -0600

Mike Scheutzow gravatar image

Hello, I installed ROS noetic on my raspberry pi,then I created a Catkin workplace and after that I cloned a repository from github. git clone -b ros-noetic https://github.com/aniskoubaa/ros_ess... then I ran the two following commands as below:

pi@raspberrypi:~ $ cd catkin_ws/
pi@raspberrypi:~/catkin_ws $ catkin_make
Base path: /home/pi/catkin_ws
Source space: /home/pi/catkin_ws/src
Build space: /home/pi/catkin_ws/build
Devel space: /home/pi/catkin_ws/devel
Install space: /home/pi/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/pi/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/pi/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/pi/catkin_ws/devel;/opt/ros/noetic
-- This workspace overlays: /home/pi/catkin_ws/devel;/opt/ros/noetic
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.7.3", minimum required is "3") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using Debian Python package layout
-- Using empy: /usr/lib/python3/dist-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/pi/catkin_ws/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python3 (found version "3.7.3") 
-- Using Python nosetests: /usr/bin/nosetests3
-- catkin 0.8.10
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - ros_essentials_cpp
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'ros_essentials_cpp'
-- ==> add_subdirectory(ros_essentials_cpp)
-- Could NOT find actionlib_msgs (missing: actionlib_msgs_DIR)
-- Could not find the required component 'actionlib_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "actionlib_msgs"
  with any of the following names:

    actionlib_msgsConfig.cmake
    actionlib_msgs-config.cmake

  Add the installation prefix of "actionlib_msgs" to CMAKE_PREFIX_PATH or set
  "actionlib_msgs_DIR" to a directory containing one of the above files.  If
  "actionlib_msgs" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  ros_essentials_cpp/CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/pi/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:320: cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

Do you know how I can solve the problem?

Thanks

edit retag flag offensive close merge delete

Comments

Hi @sm75, you are missing actionlib_msgs package. You can install: sudo apt install ros-noetic-actionlib-msgs then you can compile again.

osilva gravatar image osilva  ( 2021-11-01 13:51:44 -0600 )edit

I ran what you said: pi@raspberrypi:~ $ cd catkin_ws/ pi@raspberrypi:~/catkin_ws $ sudo apt install ros-noetic-actionlib-msgs Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package ros-noetic-actionlib-msgs pi@raspberrypi:~/catkin_ws $ cd opt/ros/noetic/share/catkin/cmake bash: cd: opt/ros/noetic/share/catkin/cmake: No such file or directory pi@raspberrypi:~/catkin_ws $ cd /opt/ros/noetic/share/catkin/cmake pi@raspberrypi:/opt/ros/noetic/share/catkin/cmake $ sudo apt install ros-noetic-actionlib-msgs Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package ros-noetic-actionlib-msgs pi@raspberrypi:/opt/ros/noetic/share/catkin/cmake $

any idea?

Regards,

sm75 gravatar image sm75  ( 2021-11-01 14:05:45 -0600 )edit

Try to build from source then: https://github.com/ros/common_msgs

osilva gravatar image osilva  ( 2021-11-01 14:20:35 -0600 )edit

or maybe sudo apt install ros-noetic-common-msgs as actionlib-msgs are included

osilva gravatar image osilva  ( 2021-11-01 14:24:26 -0600 )edit

How to build it from that source?I am not professional in linux.

sm75 gravatar image sm75  ( 2021-11-01 14:28:55 -0600 )edit
osilva gravatar image osilva  ( 2021-11-01 14:38:36 -0600 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2021-11-02 22:07:10 -0600

sm75 gravatar image

I found the answer, thanks to osilva:) actually in the link below: http://wiki.ros.org/catkin/commands/c... I ran the code below for building the actionlib_msgs first then doing the actual catkin_make is possible. pi@raspberrypi:~/catkin_ws $ catkin_make -DCATKIN_WHITELIST_PACKAGES="actionlib_msgs" Base path: /home/pi/catkin_ws Source space: /home/pi/catkin_ws/src Build space: /home/pi/catkin_ws/build Devel space: /home/pi/catkin_ws/devel Install space: /home/pi/catkin_ws/install

#

Running command: "cmake /home/pi/catkin_ws/src -DCATKIN_WHITELIST_PACKAGES=actionlib_msgs -DCATKIN_DEVEL_PREFIX=/home/pi/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/pi/catkin_ws/install -G Unix Makefiles" in "/home/pi/catkin_ws/build"

#

-- Using CATKIN_DEVEL_PREFIX: /home/pi/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/noetic -- This workspace overlays: /opt/ros/noetic -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.7.3", minimum required is "3") -- Using PYTHON_EXECUTABLE: /usr/bin/python3 -- Using Debian Python package layout -- Using empy: /usr/lib/python3/dist-packages/em.py -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/pi/catkin_ws/build/test_results -- Forcing gtest/gmock from source, though one was otherwise available. -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python3 (found version "3.7.3") -- Using Python nosetests: /usr/bin/nosetests3 -- catkin 0.8.10 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- Using CATKIN_WHITELIST_PACKAGES: actionlib_msgs -- Configuring done -- Generating done -- Build files have been written to: /home/pi/catkin_ws/build

#

Running command: "make -j4 -l4" in "/home/pi/catkin_ws/build"

#

pi@raspberrypi:~/catkin_ws $ catkin_make Base path: /home/pi/catkin_ws Source space: /home/pi/catkin_ws/src Build space: /home/pi/catkin_ws/build Devel space: /home/pi/catkin_ws/devel Install space: /home/pi/catkin_ws/install

#

Running command: "cmake /home/pi/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/pi/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/pi/catkin_ws/install -G Unix Makefiles" in "/home/pi/catkin_ws/build"

#

-- Using CATKIN_DEVEL_PREFIX: /home/pi/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/noetic -- This workspace overlays: /opt/ros/noetic -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.7.3", minimum required is "3") -- Using PYTHON_EXECUTABLE: /usr/bin/python3 -- Using Debian Python package layout -- Using empy: /usr/lib/python3/dist-packages/em.py -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/pi/catkin_ws/build/test_results -- Forcing gtest/gmock from source, though one was otherwise available. -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python3 (found version "3.7.3") -- Using Python nosetests: /usr/bin/nosetests3 -- catkin 0.8.10 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- Using CATKIN_WHITELIST_PACKAGES: actionlib_msgs -- Configuring done -- Generating done -- Build files have been written to: /home/pi/catkin_ws/build

#

Running command: "make -j4 -l4" in "/home/pi/catkin_ws/build"

#

pi@raspberrypi:~/catkin_ws $

Done!!!!!!!!! Thanks to all

edit flag offensive delete link more

Comments

Glad it works.

osilva gravatar image osilva  ( 2021-11-03 04:42:33 -0600 )edit

@sm75 Your solution indicates you have not properly specified the dependencies in your CMakeLists.txt or package.xml files.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-11-03 06:53:54 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2021-10-31 21:40:43 -0600

Seen: 25 times

Last updated: Nov 02 '21