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

colcon build cannot find control_msgs

asked 2022-01-31 15:27:57 -0500

crh_redbird1 gravatar image

I installed ROS following these steps and had no issues running the test program with the Talker and Listener. I then installed Gazebo using the one-line install from

I am trying to use iRobot's Create3 model in a gazebo test environment using the following instructions on their github page All is well until I try to build the work space colcon build --symlink-install which outputs

Starting  >>> ros2_control_test_assets
Starting >>> controller_manager_msgs
Starting >>> irobot_create_msgs
Starting >>> irobot_create_description
Starting >>> irobot_create_ignition_plugins
Finished <<< ros2_control_test_assets [0.29s]                                                                                                                                             
Starting >>> hardware_interface
Finished <<< irobot_create_description [0.28s]                                                                                                                    
Finished <<< irobot_create_ignition_plugins [0.36s]                                                                                                                                                   
--- stderr: hardware_interface
CMake Error at CMakeLists.txt:9 (find_package):
  By not providing "Findcontrol_msgs.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "control_msgs", but CMake did not find one.

  Could not find a package configuration file provided by "control_msgs" with
  any of the following names:


  Add the installation prefix of "control_msgs" to CMAKE_PREFIX_PATH or set
  "control_msgs_DIR" to a directory containing one of the above files.  If
  "control_msgs" provides a separate development package or SDK, be sure it
  has been installed.

Failed   <<< hardware_interface [0.19s, exited with code 1]
Aborted  <<< controller_manager_msgs [0.52s]                                                                                    
Aborted  <<< irobot_create_msgs [0.71s]                                 

Summary: 3 packages finished [1.14s]
  1 package failed: hardware_interface
  2 packages aborted: controller_manager_msgs irobot_create_msgs
  1 package had stderr output: hardware_interface
  26 packages not processed

I have trying installing it independently, but it is already installed correctly

etgtech@etg-tech-linux:~/create3_ws$ sudo apt install ros-galactic-control-msgs
[sudo] password for etgtech: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-galactic-control-msgs is already the newest version (3.0.0-2focal.20211011.203147).
The following package was automatically installed and is no longer required:
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

I'm not sure if the suggest error fix is correct, but if it is I'm not sure where I would set the PATH variables. Local to the workspace?

Thanks for any help

edit retag flag offensive close merge delete


Just to be sure - you changed your branch to the galactic one (like this)? Were both ROS2 and workspace sourced?

ljaniec gravatar image ljaniec  ( 2022-02-01 08:04:07 -0500 )edit

I hadn't switched the to the galactic branch but I have now. I deleted the workspace and remade just to be sure I didn't have extra dependencies, but I still I have the same ever when tying to build.

crh_redbird1 gravatar image crh_redbird1  ( 2022-02-01 12:37:41 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2022-02-01 15:25:44 -0500

crh_redbird1 gravatar image

updated 2022-02-02 15:08:42 -0500

I did a fresh install of ROS2-Galactic using Debian packages and it seems to have fixed my build issues where origanlly I did a basic Ubuntu install. The Debian packages install is for ros-desktop

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2022-01-31 15:27:57 -0500

Seen: 1,351 times

Last updated: Feb 02 '22