Ask Your Question
2

Building ros_control on Hydro

asked 2014-03-17 16:44:41 -0500

Maya gravatar image

Hello

I'm trying to build ros_control on Hydro following the steps here.

First of all when I use sudo apt-get install ros_control ros_controllers apt-get tell me it's impossible for him to find the packages.

But then when I try to build from source using those commands :

cd CATKIN_WORKSPACE/src
wstool init
wstool merge https://raw.github.com/ros-controls/ros_control/hydro-devel/ros_control.rosinstall
wstool update

Then I use catkin_make and I have two kind of errors during the process :

First :

CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
Could not find a configuration file for package cmake_modules.

Set cmake_modules_DIR to the directory containing a CMake configuration
file for cmake_modules.  The file will have one of the following names:

cmake_modulesConfig.cmake
cmake_modules-config.cmake

Call Stack (most recent call first):
ros_controllers/gripper_action_controller/CMakeLists.txt:7 (find_package)

Second :

CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
Could not find a configuration file for package cmake_modules.

Set cmake_modules_DIR to the directory containing a CMake configuration
file for cmake_modules.  The file will have one of the following names:

cmake_modulesConfig.cmake
cmake_modules-config.cmake

Call Stack (most recent call first):
ros_control/transmission_interface/CMakeLists.txt:31 (find_package)


CMake Error at ros_control/transmission_interface/CMakeLists.txt:37 (find_package):
Could not find module FindTinyXML.cmake or a configuration file for package
TinyXML.

Adjust CMAKE_MODULE_PATH to find FindTinyXML.cmake or set TinyXML_DIR to
the directory containing a CMake configuration file for TinyXML.  The file
will have one of the following names:

TinyXMLConfig.cmake
tinyxml-config.cmake



CMake Error at /opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:156 (message):
catkin_package() DEPENDS on 'TinyXML' which must be find_package()-ed
before.  If it is a catkin package it can be declared as CATKIN_DEPENDS
instead without find_package()-ing it. 
Call Stack (most recent call first):
/opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
ros_control/transmission_interface/CMakeLists.txt:40 (catkin_package)


-- Configuring incomplete, errors occurred!
Invoking "cmake" failed

Or I think tinyXML is installed on my system as I have libtinyxml-dev and libtinyxml2.6.2 already installed

Any help is appreciated

edit retag flag offensive close merge delete

Comments

can I use this package in groovy ?

zsbhaha gravatar imagezsbhaha ( 2014-03-17 22:30:40 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2014-03-17 17:03:01 -0500

ahendrix gravatar image

Try installing the ros-hydro-ros-control and ros-hydro-ros-controllers ubuntu packages:

sudo apt-get install ros-hydro-ros-control ros-hydro-ros-controllers
edit flag offensive delete link more

Comments

4

To complement Austin's answer, your attempt to do a source build failed because the `cmake_modules` package is missing (which is causing the two reported errors). You can make sure that a package's dependencies are satisfied by running `rosdep install ros_control ros_controllers`.

Adolfo Rodriguez T gravatar imageAdolfo Rodriguez T ( 2014-03-17 22:24:49 -0500 )edit
3

answered 2015-02-26 10:14:33 -0500

Avio gravatar image

I had a similar problem too, the solution is simply to install the ros-hydro-cmake-modules package.

sudo apt-get install ros-hydro-cmake-modules
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-03-17 16:44:41 -0500

Seen: 3,704 times

Last updated: Mar 17 '14