Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

error finding ros controll in catkin_make

I was following ros control tutorial to control robot in gazebo with ros, but as i try to build the package by running catkin_make i get this error:

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

    ros_controlConfig.cmake
    ros_control-config.cmake

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

my CMakeLists.txt file is:

cmake_minimum_required(VERSION 2.8.3)
project(myrobot_control)
find_package(catkin REQUIRED COMPONENTS
  ros_control
  ros_controllers
)
    catkin_package()
include_directories(
  ${catkin_INCLUDE_DIRS}
)

error finding ros controll in catkin_make

I was following ros control tutorial to control robot in gazebo with ros, but as i try to build the package by running catkin_make i get this error:

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

    ros_controlConfig.cmake
    ros_control-config.cmake

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

my CMakeLists.txt file is:

cmake_minimum_required(VERSION 2.8.3)
project(myrobot_control)
find_package(catkin REQUIRED COMPONENTS
  ros_control
  ros_controllers
)
    catkin_package()
include_directories(
  ${catkin_INCLUDE_DIRS}
)

I have installed ros-control package by sudo apt-get install ros-indigo-ros-control but it didn't helped.