Kinovarobotics / ros_kortex_vision

ROS package for KINOVA® KORTEX™ arms vision module
BSD 3-Clause "New" or "Revised" License
33 stars 36 forks source link

Camera Calibration Parsers #5

Closed jabbershort closed 3 years ago

jabbershort commented 3 years ago

I'm having an issue building the vision package during the catkin_make stage. Its throwing an error relating to camera_calibration_parsersConfig.cmake. See full text below:

Base path: /catkin_ws
Source space: /catkin_ws/src
Build space: /catkin_ws/build
Devel space: /catkin_ws/devel
Install space: /catkin_ws/install
####
#### Running command: "cmake /catkin_ws/src -DCATKIN_DEVEL_PREFIX=/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/catkin_ws/install -G Unix Makefiles" in "/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.12", 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: /catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.12")
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - kinova_vision
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'kinova_vision'
-- ==> add_subdirectory(ros_kortex_vision)
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by
  "camera_calibration_parsers" with any of the following names:

    camera_calibration_parsersConfig.cmake
    camera_calibration_parsers-config.cmake

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

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

    camera_calibration_parsersConfig.cmake
    camera_calibration_parsers-config.cmake

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

-- Configuring incomplete, errors occurred!
See also "/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
jabbershort commented 3 years ago

For anyone else that hits this problem, in order to fix this, you need to firstly install ros-<version>-tf (i.e. ros-melodic-tf) and then build the image_common package here: https://github.com/ros-perception/image_common

This should then get the vision package working.