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

When I want to compile catkin_ws it give me this error [closed]

asked 2019-09-23 07:32:03 -0600

oovidiustr gravatar image

updated 2019-09-23 07:32:48 -0600

Hello!

I want to compile catkin_ws folder after I unziped a simulation package from "the construct" web site. When I run the comand catkin_make I receive this error:

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

    pidConfig.cmake
    pid-config.cmake

  Add the installation prefix of "pid" to CMAKE_PREFIX_PATH or set "pid_DIR"
  to a directory containing one of the above files.  If "pid" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  kobuki/simulation_ws/src/turtlebot/follow_line_tc_pkg/CMakeLists.txt:10 (find_package)


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

    pidConfig.cmake
    pid-config.cmake

  Add the installation prefix of "pid" to CMAKE_PREFIX_PATH or set "pid_DIR"
  to a directory containing one of the above files.  If "pid" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  kobuki/simulation_ws/src/turtlebot/follow_line_tc_pkg/CMakeLists.txt:10 (find_package)


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

I use kinetic ROS.

Can someone help me?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by oovidiustr
close date 2019-10-07 03:02:54.385551

1 Answer

Sort by ยป oldest newest most voted
4

answered 2019-09-23 07:36:28 -0600

gvdhoorn gravatar image

As with all ROS packages, you cannot just clone/unzip just that package and start building.

You need to make sure to have all dependencies installed, or compilation will fail.

Please refer to #q252478 for an example workflow.

edit flag offensive delete link more

Comments

Thanks! I did the steps from the winner answer of the link you pointed. Now i can compile the folder but the packages don't appear in ROS packages list. What can i do?

oovidiustr gravatar image oovidiustr  ( 2019-09-24 01:17:57 -0600 )edit

I'm not sure what "the ROS packages list" is.

Make sure to source /path/to/your/catkin_ws/devel/setup.bash after running catkin_make. Check whether packages can be found with rospack find $pkg_name. If that doesn't work, try running rospack profile and try rospack find again.

gvdhoorn gravatar image gvdhoorn  ( 2019-09-24 02:32:22 -0600 )edit

That was the problem... source /path/to/your/catkin_ws/devel/setup.bash solved the problem

oovidiustr gravatar image oovidiustr  ( 2019-09-24 03:44:19 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-09-23 07:32:03 -0600

Seen: 2,631 times

Last updated: Sep 23 '19