ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

install kobuki on melodic: error

asked 2022-06-13 09:34:33 -0500

taka_ gravatar image

updated 2022-06-14 13:10:44 -0500

gvdhoorn gravatar image

Hello, I tried to run the below code to "compile kobuki from its source codes" because kobuki for melodic seems not being released. (referring to a Japanese textbook I'm reading to learn ROS) Thank you very much in Advance

OS: Ubuntu 18.04 on Virtualbox ROS: melodic

CODE

$ curl -sLf https://raw.githubusercontent.com/gaunthan/Turtlebot2-On-Melodic/master/install_all.sh | bash
$ catkin_make

What I got(copy & paste from the terminal):

taka@taka-VirtualBox:~/catkin_ws_2$ curl -sLf https://raw.githubusercontent.com/gaunthan/Turtlebot2-On-Melodic/master/install_all.sh | bash
fatal: destination path 'turtlebot_simulator' already exists and is not an empty directory.
fatal: destination path 'turtlebot' already exists and is not an empty directory.
fatal: destination path 'turtlebot_apps' already exists and is not an empty directory.
fatal: destination path 'turtlebot_msgs' already exists and is not an empty directory.
fatal: destination path 'turtlebot_interactions' already exists and is not an empty directory.
fatal: destination path 'orocos-bayesian-filtering' already exists and is not an empty directory.
Orocos BFL configure script.
Error: One can not change the compiler once configured !
Error: In order to change the compiler, use a fresh build directory.
[ 55%] Built target orocos-bfl
[ 61%] Built target test_compare_filters
[ 68%] Built target test_linear_kalman
[ 75%] Built target test_nonlinear_kalman
[ 85%] Built target test_nonlinear_particle
[ 91%] Built target test_kalman_smoother
[100%] Built target test_discrete_filter
[ 55%] Built target orocos-bfl
[ 61%] Built target test_compare_filters
[ 68%] Built target test_linear_kalman
[ 75%] Built target test_nonlinear_kalman
[ 85%] Built target test_nonlinear_particle
[ 91%] Built target test_kalman_smoother
[100%] Built target test_discrete_filter
Install the project...
-- Install configuration: "Debug"
-- Up-to-date: /usr/local/lib/pkgconfig/orocos-bfl.pc
-- Up-to-date: /usr/local/include/bfl/bfl_constants.h
-- Up-to-date: /usr/local/include/bfl/bfl_err.h
-- Up-to-date: /usr/local/lib/liborocos-bfl.so.0.8
-- Up-to-date: /usr/local/lib/liborocos-bfl.so
-- Up-to-date: /usr/local/include/bfl/wrappers/config.h
-- Up-to-date: /usr/local/include/bfl/wrappers/matrix/matrix_wrapper.h
-- Up-to-date: /usr/local/include/bfl/wrappers/matrix/vector_wrapper.h
-- Up-to-date: /usr/local/include/bfl/wrappers/matrix/matrix_BOOST.h
-- Up-to-date: /usr/local/include/bfl/wrappers/matrix/vector_BOOST.h
-- Up-to-date: /usr/local/include/bfl/wrappers/matrix/matrix_NEWMAT.h
-- Up-to-date: /usr/local/include/bfl/wrappers/matrix/vector_NEWMAT.h
-- Up-to-date: /usr/local/include/bfl/wrappers/matrix/matrix_EIGEN.h
-- Up-to-date: /usr/local/include/bfl/wrappers/matrix/vector_EIGEN.h
-- Up-to-date: /usr/local/include/bfl/wrappers/config.h
-- Up-to-date: /usr/local/include/bfl/wrappers/rng/rng.h
-- Up-to-date: /usr/local/include/bfl/sample/sample.h
-- Up-to-date: /usr/local/include/bfl/sample/sample.cpp
-- Up-to-date: /usr/local/include/bfl/sample/weightedsample.h
-- Up-to-date: /usr/local/include/bfl/pdf/pdf.h
-- Up-to-date: /usr/local/include/bfl/pdf/conditionalpdf.h
-- Up-to-date: /usr/local/include/bfl/pdf/discretepdf.h
-- Up-to-date: /usr/local/include/bfl/pdf/discreteconditionalpdf.h
-- Up-to-date: /usr/local/include/bfl/pdf/mcpdf.h
-- Up-to-date: /usr/local/include/bfl/pdf/mcpdf.cpp
-- Up-to-date: /usr/local/include/bfl/pdf/gaussian.h
-- Up-to-date: /usr/local/include/bfl/pdf/uniform.h
-- Up-to-date: /usr/local/include/bfl/pdf/conditionalgaussian.h
-- Up-to-date: /usr/local/include/bfl/pdf/conditionalgaussian_additivenoise.h
-- Up-to-date: /usr/local/include/bfl/pdf/analyticconditionalgaussian.h
-- Up-to-date: /usr/local/include/bfl/pdf/analyticconditionalgaussian_additivenoise.h
-- Up-to-date: /usr/local ...
(more)
edit retag flag offensive close merge delete

Comments

Could you please format the text into a code like structure and repost? It's quite difficult to understand this way

Or maybe a pic of the error in the terminal would be more helpful

electrophod gravatar image electrophod  ( 2022-06-14 02:10:31 -0500 )edit
1

Or maybe a pic of the error in the terminal [..]

please don't ask people to post screenshots of terminals. That would be against the support guidelines, and unnecessary.

It's all text, so a properly formatted copy-paste of the terminal text would be preferable.

gvdhoorn gravatar image gvdhoorn  ( 2022-06-14 13:11:37 -0500 )edit

@gvdhoom I'm sorry, I didn't know about this guideline. Thanks, will keep in mind

electrophod gravatar image electrophod  ( 2022-06-22 01:49:57 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-14 16:12:07 -0500

qilin_gundamenjoyer gravatar image

Errors:
1) CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:166 (message): catkin_package() DEPENDS on 'eigen' but neither 'eigen_INCLUDE_DIRS' nor 'eigen_LIBRARIES' is defined.
2) CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:166 (message): catkin_package() DEPENDS on 'opencv' but neither 'opencv_INCLUDE_DIRS' nor 'opencv_LIBRARIES' is defined.
3) CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "joy" with any of the following names: joyConfig.cmake, joy-config.cmake

Explanation:
In the errors, catkin_package() DEPENDS explicitly states these missing packages. In your case, you are missing eigen, opencv, and joy. catkin_pacakage() DEPENDS gathers all flags and organizes these flags in the appropriate location, this ends up allowing ROS packages to be exported more easier, such as compile and linker flags. The varaiables arg0_LIBRARIES and arg1_include_DIRS are the flags.

Solution :
Run rosdep --from-paths src --ignore-src -r -y to automatically download all the missing dependencies. If the problem still persists, type sudo apt-get install ros-melodic-joy. After that, check your CMakeLists.txt file and under #find_dependencies or where all the find_package(... REQUIRED) are written at, be ascertain that find_package(eigen REQUIRED),find_package(opencv REQUIRED), andfind_package(joy REQUIRED)` is within the text file. Otherwise, write it in manually and save it.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-06-13 09:34:33 -0500

Seen: 132 times

Last updated: Jun 14 '22