Could not find a package configuration file provided by "ros_control"
I am trying to catkin_make my workspace in ROS Kinetic in Ubuntu 16.04. I am getting 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 "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):
test_test/CMakeLists.txt:13 (find_package)
-- 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/kinetic/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.
Here is my CMakeLists.txt:
cmake_minimum_required(VERSION 2.8.3)
project(test_test)
find_package(catkin REQUIRED COMPONENTS
ros_control
ros_controllers
roscpp
rospy
std_msgs
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES test_test
# CATKIN_DEPENDS ros_control ros_controllers roscpp rospy std_msgs
# DEPENDS system_lib
)
include_directories(
# include
${catkin_INCLUDE_DIRS}
)
I have tried the following but it did not help:
sudo apt-get install ros-kinetic-effort-controllers
sudo apt-get install ros-kinetic-joint-state-controller
Update:
I installed this package:
sudo apt-get install ros-kinetic-ros-control ros-kinetic-ros-controllers
The issue persists but now I am getting the following warning:
WARNING: package "test_test" should not depend on metapackage "ros_control" but on its packages instead
WARNING: package "test_test" should not depend on metapackage "ros_controllers" but on its packages instead
How did you install
ros_control
?I believe the issue is that OP is depending on a metapackage directly. That is not supported and should not be done.
@gvdhoorn Could you please elaborate?
Metapackage
and
So, it's a package of packages and isn't meant to be depended on. You should depend on one of the packages that's contained in the metapackage, not the metapackage itself.