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

newby: trouble installing KnowRob on ubuntu 18.04/ROS melodic

asked 2018-09-24 16:30:54 -0500

Dan18 gravatar image

updated 2018-09-25 02:51:14 -0500

gvdhoorn gravatar image

Hello,

I am trying to get KnowRob to work, installing it in a VM (VirtualBox) with Ubuntu 18.04 / ROS melodic. I essentially followed following steps:

  1. installed Ubuntu 18.04
  2. installed java default (which is 10.0.2)
  3. installed swi prolog
  4. installed ROS melodic
  5. installed / made catkin_ws
  6. followed instructions to of developers setup ( http://knowrob.org/installation/catkin )

However when submitting the final command: catkin_make

I got the following list of errors:

-- Could NOT find rosjava_build_tools (missing: rosjava_build_tools_DIR)
-- Could not find the required component 'rosjava_build_tools'. 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/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by
  "rosjava_build_tools" with any of the following names:

    rosjava_build_toolsConfig.cmake
    rosjava_build_tools-config.cmake

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


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

Naturally, when then trying to run rosrun rosprolog rosprolog knowrob_common (after setting java envirionment vars), i got a wealth of other errors such as:

ERROR: /home/dani/catkin_ws/src/knowrob/rosprolog/prolog/roscpp.pl:48:
    /home/dani/catkin_ws/src/knowrob/rosprolog/prolog/roscpp.pl:48: Initialization goal raised exception:
    '$open_shared_object'/3: librosprolog.so: cannot open shared object file: No such file or directory
ERROR: /home/dani/catkin_ws/src/knowrob/rosprolog/prolog/roscpp.pl:49:
    catch/3: Undefined procedure: roscpp:ros_init/0

Any suggestions how to fix this would be much appreciated,

Dan

edit retag flag offensive close merge delete

Comments

Just some expectation management: the knowrob packages are "old", and the versions of ROS for which it definitely worked were Hydro and Groovy. I'm not saying it's impossible, but running into issues is somewhat expected after all these years.

Let's see if there are forum members that can help.

gvdhoorn gravatar image gvdhoorn  ( 2018-09-25 02:52:47 -0500 )edit

for catkin_make err maybe this command useful

"sudo apt-get install ros-<ros name>-rosjava-build-tools"

or

"sudo apt-get install ros-<ros name>-rosjava-*"
Hamid Didari gravatar image Hamid Didari  ( 2018-09-25 03:07:23 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-06-01 11:27:20 -0500

vincentS gravatar image

Hi Dan,

Where you able to install the missing dependencies. And if yes, how?

Thanks! Best, V

edit flag offensive delete link more

Question Tools

Stats

Asked: 2018-09-24 16:30:54 -0500

Seen: 521 times

Last updated: Sep 25 '18