Ask Your Question
0

Error installing using_markers pkg

asked 2016-09-06 06:12:27 -0500

lucadg gravatar image

Hi guys, I am having installing packages around. Now I am following the tutorial Markers: Sending Basic Shapes (C++). I have the kinetic version of ROS which I have installed using apt-get on Ubuntu 16.04.

The problem comes when I execute the command catkin_make in order to build my new code. I get the following error:

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by
  "visualisation_msgs" with any of the following names:

    visualisation_msgsConfig.cmake
    visualisation_msgs-config.cmake

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


-- Could not find the required component 'visualisation_msgs'. 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
  "visualisation_msgs" with any of the following names:

    visualisation_msgsConfig.cmake
    visualisation_msgs-config.cmake

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


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

Then I've tried to install the package visualisation_msgs as it is always available for kinetic and I still get the same error.

Thank you in advance for your help

edit retag flag offensive close merge delete

Comments

Have you tried removing your build and devel folder and running catkin_make again? If it still fails, what is the output of rospack find visualization_msgs?

gvdhoorn gravatar image gvdhoorn  ( 2016-09-06 07:49:37 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-09-07 04:20:58 -0500

lucadg gravatar image

updated 2016-09-07 04:23:27 -0500

Found it, the problem was a spelling mistake in the CMakeLists.txt of using_markers package.

find_package(catkin REQUIRED COMPONENTS
  roscpp
  visualisation_msgs
)

It should be:

 find_package(catkin REQUIRED COMPONENTS
 roscpp
 visualization_msgs
 )

Initially was visualisation_msgs but the package it is called visualization-msgs

edit flag offensive delete link more
0

answered 2016-09-07 00:35:20 -0500

Shay gravatar image

updated 2016-09-07 04:20:55 -0500

You need to install visualization_msgs.

sudo apt-get install ros-kinetic-visualization-msgs

EDIT

Here is my log:

shay@shay:~$ sudo apt-get install ros-kinetic-visualization-msgs 
[sudo] password for shay: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-kinetic-visualization-msgs is already the newest version (1.12.4-0xenial-20160518-194920-0700).
ros-kinetic-visualization-msgs set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 112 not upgraded.              
shay@shay:~$ rospack find visualization_msgs 
/opt/ros/kinetic/share/visualization_msgs
edit flag offensive delete link more

Comments

I get the same error again. The error is abut a package called visualisation-msgs and not visualization-msgs. It is the same thing? I tried to install then visualisation-msgs as well but I get errors.

lucadg gravatar image lucadg  ( 2016-09-07 04:15:21 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-09-06 06:12:27 -0500

Seen: 1,360 times

Last updated: Sep 07 '16