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

Unable to compile package due to missing dependency

asked 2015-04-25 21:37:04 -0500

Cerin gravatar image

updated 2015-04-25 21:39:44 -0500

I'm trying to follow this tutorial, but after creating my workspace and creating my initial MYROBOT_description package, when I run catkin_make, I get this error:

CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
  Could not find a package configuration file provided by
  "robot_state_publisher" with any of the following names:

    robot_state_publisherConfig.cmake
    robot_state_publisher-config.cmake

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

Obviously, it can't find the "robot_state_publisher" my *_description package depends on, but I'm not sure why. I followed all the steps and made sure to add these lines to my ~/.bash_aliases:

source /opt/ros/indigo/setup.bash
source ~/workspace/myrobot/devel/setup.bash

What am I doing wrong?

I'm building with Indigo on Ubuntu 14.04.

edit retag flag offensive close merge delete

Comments

Have you solved the problem? I met the same one...

Zymo gravatar image Zymo  ( 2023-08-10 21:29:54 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-04-25 22:05:11 -0500

Cerin gravatar image

Turns out that tutorial was missing a few steps. Fortunately, a later section mentioned you have to add dependencies by running:

cd ~/catkin_ws/src
rosdep update
rosdep install --from-paths . --ignore-src --rosdistro indigo

After that, catkin_make ran without error.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-04-25 21:37:04 -0500

Seen: 733 times

Last updated: Apr 25 '15