I am trying to install VISP ROS and always get an error when trying to run catkin_make

asked 2023-07-19 12:45:03 -0500

Mau Hernandez gravatar image

updated 2023-07-20 00:52:31 -0500

Hello, I am very new to ROS and have been stuck in this problem for a week. Currently trying to Install visp_ros but have not been able to in any way possible.

I am following specifically this tutorial http://docs.ros.org/en/noetic/api/vis... I have tried to both build it from source and from using rosdep and both don't work.

Trying rosdep: Everytime I run:

rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO,

I get the following message:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
visp_ros: Cannot locate rosdep definition for [rosidl_default_generators]

Have tried to find something online about how to install rosidl_default_generators but to no avail

So I tried following it building it from source. I have not been able to Build visp_ros package.

I have the visp_ros folder in my catkin_ws/src folder, and every time I run the

catkin_make --cmake-args -DCMAKE_BUILD_TYPE=Release -DVISP_DIR=~/software/visp/visp-build

I get the next error:

Base path: /home/ros/catkin_ws
Source space: /home/ros/catkin_ws/src
Build space: /home/ros/catkin_ws/build
Devel space: /home/ros/catkin_ws/devel
Install space: /home/ros/catkin_ws/install
####
#### Running command: "cmake /home/ros/catkin_ws/src -DCMAKE_BUILD_TYPE=Release -DVISP_DIR=~/software/visp/visp-build -DCATKIN_DEVEL_PREFIX=/home/ros/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/ros/catkin_ws/install -G Unix Makefiles" in "/home/ros/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/ros/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/melodic
-- This workspace overlays: /opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ros/catkin_ws/build/test_results
-- 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/python2 (found version "2.7.17") 
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 7 packages in topological order:
-- ~~  - vision_visp (metapackage)
-- ~~  - visp_bridge
-- ~~  - visp_camera_calibration
-- ~~  - visp_hand2eye_calibration
-- ~~  - visp_ros (plain cmake)
-- ~~  - visp_tracker
-- ~~  - visp_auto_tracker
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:100 (message):
  This workspace contains non-catkin packages in it, and catkin cannot build
  a non-homogeneous workspace without isolation.  Try the
  'catkin_make_isolated' command instead.
Call Stack (most recent call first):
  CMakeLists.txt:69 (catkin_workspace)


-- Configuring incomplete, errors occurred!
See also "/home/ros/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ros/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

I have seen other solutions, one of them is to use catkin build instead of catkin_make, and, ignoring the fact that the previous steps tell me to use catkin_make, but I get a similar error:

Profile:                     default
Extending:             [env] /opt/ros/melodic
Workspace:                   /home/ros/catkin_ws
--------------------------------------------------------
Build Space:        [exists] /home/ros/catkin_ws/build
Devel Space:        [exists] /home/ros/catkin_ws/devel
Install Space:      [unused] /home/ros/catkin_ws/install
Log Space:         [missing] /home/ros/catkin_ws/logs
Source Space:       [exists] /home/ros/catkin_ws/src ...
(more)
edit retag flag offensive close merge delete