Robotics StackExchange | Archived questions

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

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/visp_ros/html/tutorial-franka-coppeliasim.html 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 vispros folder in my catkinws/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 catkinmake, and, ignoring the fact that the previous steps tell me to use catkinmake, 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
DESTDIR:            [unused] None
--------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------
Additional CMake Args:       None
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------
Buildlisted Packages:        None
Skiplisted Packages:         None
--------------------------------------------------------
Workspace configuration appears valid.

NOTE: Forcing CMake to run for each package.
--------------------------------------------------------
[build] Found 7 packages in 0.0 seconds.                                       
[build] Updating package table.                                                
**[build] Warning: Skipping package `visp_ros` because it has an unsupported package build type: `ament_cmake`**
[build] Note: Available build types:                                           
[build]  - `catkin`                                                            
[build]  - `cmake`                                                             
Starting  >>> catkin_tools_prebuild                                            
Finished  <<< catkin_tools_prebuild                    [ 1.5 seconds ]         
Starting  >>> visp_bridge                                                      
Starting  >>> visp_tracker                                                     
Finished  <<< visp_bridge                              [ 5.0 seconds ]         
Starting  >>> visp_camera_calibration                                          
Starting  >>> visp_hand2eye_calibration                                        
Finished  <<< visp_hand2eye_calibration                [ 14.4 seconds ]        
Finished  <<< visp_camera_calibration                  [ 20.0 seconds ]        
Finished  <<< visp_tracker                             [ 40.9 seconds ]        
Starting  >>> visp_auto_tracker                                                
Finished  <<< visp_auto_tracker                        [ 31.7 seconds ]        
Starting  >>> vision_visp                                                      
Finished  <<< vision_visp                              [ 1.5 seconds ]         
[build] Summary: All 7 packages succeeded!                                     
[build]   Ignored:   1 packages were skipped or are skiplisted.                
[build]   Warnings:  None.                                                     
[build]   Abandoned: None.                                                     
[build]   Failed:    None.                                                     
[build] Runtime: 1 minute and 15.6 seconds total.                              
[build] Note: Workspace packages have changed, please re-source setup files to use them.

And also using the catkinmakeisolated solution doesn't help

Base path: /home/ros/catkin_ws
Source space: /home/ros/catkin_ws/src
Build space: /home/ros/catkin_ws/build_isolated
Devel space: /home/ros/catkin_ws/devel_isolated
Install space: /home/ros/catkin_ws/install_isolated
Additional CMake Arguments: -DCMAKE_BUILD_TYPE=Release -DVISP_DIR=~/software/visp/visp-build
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~  traversing 7 packages in topological order:
~~  - vision_visp
~~  - visp_bridge
~~  - visp_camera_calibration
~~  - visp_hand2eye_calibration
~~  - visp_ros (unknown)
~~  - visp_tracker
~~  - visp_auto_tracker
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: Packages with unknown build types exist
Can not build workspace with packages of unknown build_type

I tried installing it in a virtual machine with Ubuntu 20.04 and another one with Ubuntu 18.04 machine. Both are using ROS 1, and this errors are from the 18.04 with the next specifications, these are all run on virtual machine: Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic

Would appreciate it a lot if someone could give me some feedback on a possible solution. Literally created a new, fresh machine and just did the tutorial to see if something was wrong or had conflict with the previous one I had but the problem persists and I cannot use VISP.

Asked by Mau Hernandez on 2023-07-19 12:45:03 UTC

Comments

Answers